fix the geometry of lots of applets (this means the clocks work again)
thanks MikeyUSC svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=722385
This commit is contained in:
parent
70f0a9f9be
commit
1f01e27b83
@ -347,6 +347,9 @@ Applet* Containment::addApplet(const QString& name, const QVariantList& args, ui
|
||||
}
|
||||
|
||||
applet->setParentItem(this);
|
||||
//the applet needs to be given constraints before it can set its geometry
|
||||
applet->updateConstraints(Plasma::AllConstraints);
|
||||
|
||||
//kDebug() << "adding applet" << applet->name() << "with a default geometry of" << geometry << geometry.isValid();
|
||||
if (geometry.isValid()) {
|
||||
applet->setGeometry(geometry);
|
||||
@ -371,8 +374,6 @@ Applet* Containment::addApplet(const QString& name, const QVariantList& args, ui
|
||||
d->layout->addItem(applet);
|
||||
}
|
||||
|
||||
applet->updateConstraints(Plasma::AllConstraints);
|
||||
|
||||
kDebug() << applet->name() << "sizehint:" << applet->sizeHint()
|
||||
<< "geometry:" << applet->geometry();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user