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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets
From:       Marco Martin <notmart () gmail ! com>
Date:       2008-01-24 20:02:29
Message-ID: 1201204949.303164.14108.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 765863 by mart:

changing expandingDirections() to behave better in vertical panels

 M  +5 -1      devicenotifier/devicenotifier.cpp  
 M  +5 -1      digital-clock/clock.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier.cpp #765862:765863
@@ -184,7 +184,11 @@
 
 Qt::Orientations DeviceNotifier::expandingDirections() const
 {
-    return Qt::Vertical;
+    if (formFactor() == Plasma::Horizontal) {
+        return Qt::Vertical;
+    } else {
+        return Qt::Horizontal;
+    }
 }
 
 QSizeF DeviceNotifier::contentSizeHint() const
--- trunk/KDE/kdebase/workspace/plasma/applets/digital-clock/clock.cpp #765862:765863
@@ -92,7 +92,11 @@
 
 Qt::Orientations Clock::expandingDirections() const
 {
-    return Qt::Vertical;
+    if (formFactor() == Plasma::Horizontal) {
+        return Qt::Vertical;
+    } else {
+        return Qt::Horizontal;
+    }
 }
 
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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