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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/quicklaunch
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-06-22 18:43:59
Message-ID: 1245696239.225333.20966.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 985409 by aseigo:

when we set the default list of apps, we also do want to resize; fixes it from having \
a bizarrely small size in the panel until the panel layout decides to update. i think \
this is a bug in QGrahpicsLinearLayout, however, as an item changing it's preferred \
size ought to trigger a relayout imo. :)


 M  +6 -2      quicklaunchApplet.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/quicklaunch/quicklaunchApplet.cpp \
#985408:985409 @@ -120,7 +120,8 @@
 
     QStringList desktopFiles = cg.readEntry("iconUrls", QStringList());
 
-    if (desktopFiles.isEmpty()) {
+    bool firstStart = desktopFiles.isEmpty();
+    if (firstStart) {
         QStringList defaultApps;
         defaultApps << "konqbrowser" << "dolphin" << "kopete";
 
@@ -142,6 +143,10 @@
     }
 
     performUiRefactor();
+
+    if (firstStart) {
+        resize(sizeHint(Qt::PreferredSize));
+    }
 }
 
 QSizeF QuicklaunchApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) \
const @@ -246,7 +251,6 @@
         m_dialog->adjustSize();
     }
 
-    //resize(sizeHint(Qt::PreferredSize));
     update();
 }
 


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

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