Revision 692630

Go back to digest for 29th July 2007

Other in KDE Base

Aaron J. Seigo committed changes in /trunk/KDE/kdebase/workspace/libs/plasma/applet.cpp:

this one took me a while to figure out =/

we need a separate private contentSize() for Applet because we need to be able to override what the subclass might be trying to accomplish. since the method is virtual, i had to put it in the dptr and call Applet::contentSize from there on successfully passing various tests such as "is this a script?" and "has this applet been marked as failed?". stupid polymorphism.

end result is that now an applet can, as expected, call setFailedToLaunch(true) and the applet gets the right size, no matter when or where it was called from.

huzzah.

File Changes

Modified 1 files
  • /trunk/KDE/kdebase/workspace/libs/plasma/applet.cpp
1 files changed in total