this work around doesn't work

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874990
This commit is contained in:
Aaron J. Seigo 2008-10-23 00:09:25 +00:00
parent 9f70fbd4f3
commit d9e5d8babd

View File

@ -421,16 +421,6 @@ void ExtenderPrivate::adjustSize()
q->setMinimumSize(q->layout()->preferredSize()); q->setMinimumSize(q->layout()->preferredSize());
} }
//check if our parentItem is an applet, and set the applets correct minimumsize.
Applet *applet = qgraphicsitem_cast<Applet*>(q->parentItem());
if (applet) {
QSizeF marginSize = applet->size() - applet->contentsRect().size();
//FIXME: for some reason the preferred size hint get's set correctly,
//but the minimumSizeHint doesn't. Investigate why.
applet->setMinimumSize(q->minimumSize() + marginSize);
applet->adjustSize();
}
emit q->geometryChanged(); emit q->geometryChanged();
} }