drawing the background by default requires us setting that up on applet start for the case of odd applets that don't ever change their size or do any other geometry upsetting things. plasmoidviewer weather was the testcase for this one.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734138
This commit is contained in:
Aaron J. Seigo 2007-11-08 07:53:56 +00:00
parent faaaf298a7
commit 25fdb2adf5
2 changed files with 2 additions and 2 deletions

View File

@ -156,6 +156,7 @@ public:
}
}
}
applet->setDrawStandardBackground(true);
}
// put all setup routines for script here. at this point we can assume that
@ -706,7 +707,6 @@ void Applet::flushUpdatedConstraints()
if (layout()) {
layout()->update();
}
}
int Applet::type() const

View File

@ -386,7 +386,7 @@ class PLASMA_EXPORT Applet : public Widget
* Sets whether the applet should automatically draw the standard
* background.
*
* Defaults to false
* Defaults to true
**/
void setDrawStandardBackground(bool drawBackground);