[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdereview/plasma/applets/trash
From:       Marco Martin <notmart () gmail ! com>
Date:       2008-02-17 15:11:58
Message-ID: 1203261118.247436.22860.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 776167 by mart:

Square only in panel

 M  +7 -3      trash.cpp  


--- trunk/kdereview/plasma/applets/trash/trash.cpp #776166:776167
@@ -56,7 +56,6 @@
       m_trashUrl(KUrl("trash:/")),
       m_count(0)
 {
-    setRemainSquare(true);
 }
 
 Trash::~Trash()
@@ -133,14 +132,19 @@
     if (constraints & Plasma::FormFactorConstraint) {
         if (formFactor() == Plasma::Planar ||
             formFactor() == Plasma::MediaCenter) {
+            setRemainSquare(false);
             m_icon->setText(i18n("Trash"));
             m_showText = true;
-            setMinimumContentSize(m_icon->sizeFromIconSize(IconSize(KIconLoader::Desktop)));
 +
+            //Adding an arbitrary width to make room for a larger count of items
+            setMinimumContentSize(m_icon->sizeFromIconSize(IconSize(KIconLoader::Desktop))+=QSizeF(20,0));
  } else {
+            setRemainSquare(true);
             m_icon->setText(0);
             m_icon->setInfoText(0);
             m_showText = false;
-            setMinimumContentSize(m_icon->sizeFromIconSize(IconSize(KIconLoader::Panel)));
 +
+            setMinimumContentSize(m_icon->sizeFromIconSize(IconSize(KIconLoader::Small)));
  }
         setIcon();
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic