An applets sizeHint() is sometimes based on constraints so make sure that

the applet's constraints are up to date before using its sizeHint()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754125
This commit is contained in:
Jason Stubbs 2007-12-29 05:03:05 +00:00
parent 9f2e3e276e
commit cf40a07331

View File

@ -466,6 +466,7 @@ Applet* Containment::addApplet(const QString& name, const QVariantList& args, ui
//the applet needs to be given constraints before it can set its geometry
applet->updateConstraints(Plasma::AllConstraints);
applet->flushUpdatedConstraints();
//kDebug() << "adding applet" << applet->name() << "with a default geometry of" << appletGeometry << appletGeometry.isValid();
if (appletGeometry.isValid()) {