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

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets/incomingmsg
From:       Marco Martin <notmart () gmail ! com>
Date:       2009-02-03 15:29:38
Message-ID: 1233674978.987005.10303.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 920674 by mart:

no, you don't want to use setGeometry() in constraintsEvent, really


 M  +8 -3      incomingmsg.cpp  


--- trunk/KDE/kdeplasma-addons/applets/incomingmsg/incomingmsg.cpp #920673:920674
@@ -385,9 +385,14 @@
                     constraints & Plasma::FormFactorConstraint)) {
         QRectF layoutRectF = mLayout->geometry();
         QRectF appletRectF = geometry();
-        if (layoutRectF.height() > appletRectF.height()) {
-            appletRectF.setHeight(layoutRectF.height() + 10);
-            setGeometry(appletRectF);
+        appletRectF.setHeight(layoutRectF.height() + 10);
+
+        if (formFactor() == Plasma::Vertical) {
+            setMinimumSize(0, appletRectF.height());
+        } else if (formFactor() == Plasma::Horizontal) {
+            setMinimumSize(appletRectF.width(), 0);
+        } else if (layoutRectF.height() > appletRectF.height()) {
+            setMinimumSize(appletRectF.size());
         }
     }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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