From kde-commits Mon Jun 22 18:43:59 2009 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Mon, 22 Jun 2009 18:43:59 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/applets/quicklaunch Message-Id: <1245696239.225333.20966.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=124569686723016 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(); }