[Bug 164800] kickoff does not save size, after logout size is back to default

Luiz Felipe Talvik talvik at gmail.com
Fri Jul 11 18:42:32 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=164800         




------- Additional Comments From talvik gmail com  2008-07-11 18:42 -------
The same happens here. But it works with sizes bellow 853x533.

I tried fixing the bug. But after hours all I could come was this hack. I don't think its a proper solution. I removed launcher->adjustSize() and put launcher->resize(launcher->sizeHint()) instead. It is working as intended now.

~/kde/src/KDE/kdebase/workspace/plasma/applets/kickoff$ svn diff
Index: applet/applet.cpp
===================================================================
--- applet/applet.cpp   (revision 830982)
+++ applet/applet.cpp   (working copy)
 @ -66,7 +66,8  @
     launcher = new Kickoff::Launcher(q);
     launcher->setWindowFlags(launcher->windowFlags()|Qt::WindowStaysOnTopHint|Qt::Popup);
     launcher->setAutoHide(true);
-    launcher->adjustSize();
+    //launcher->adjustSize();
+    launcher->resize(launcher->sizeHint());
     QObject::connect(launcher, SIGNAL(aboutToHide()), icon, SLOT(setUnpressed()));
     QObject::connect(launcher, SIGNAL(configNeedsSaving()), q, SIGNAL(configNeedsSaving()));
 }


This is the first time i tried fixing a bug and the first time I looked at "real" C++ code(looks very different from the books, i didn't get the d pointers to a class called Private). All QT knowledge I've got is from the first six chapters C++GUI Programming.

For some reason sizeHint is ignored above cretain size. I tried changing sizepolicy and other things but nothing worked. In which situations sizehint is ignored? And is sizehint overload implemented correctly? Is the above solution acceptable?


More information about the Panel-devel mailing list