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:
parent
9f2e3e276e
commit
cf40a07331
@ -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
|
//the applet needs to be given constraints before it can set its geometry
|
||||||
applet->updateConstraints(Plasma::AllConstraints);
|
applet->updateConstraints(Plasma::AllConstraints);
|
||||||
|
applet->flushUpdatedConstraints();
|
||||||
|
|
||||||
//kDebug() << "adding applet" << applet->name() << "with a default geometry of" << appletGeometry << appletGeometry.isValid();
|
//kDebug() << "adding applet" << applet->name() << "with a default geometry of" << appletGeometry << appletGeometry.isValid();
|
||||||
if (appletGeometry.isValid()) {
|
if (appletGeometry.isValid()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user