we should only muck with the minimum sizes of the popup applet when iconified if it is actually using an icon; otherwise we leave it up to the applet itself to do this properly as it normally would have to

CCBUG:226391

svn path=/branches/KDE/4.4/kdelibs/; revision=1088931
This commit is contained in:
Aaron J. Seigo 2010-02-11 22:53:42 +00:00
parent 60439c0ae5
commit 0d7b5e88d8

View File

@ -358,7 +358,10 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
//emulate the same kind of behavior as Qt::Popup (close when you click somewhere
//else.
q->setMinimumSize(QSize(0, 0));
if (icon) {
q->setMinimumSize(QSize(0, 0));
}
if (gWidget) {
Corona *corona = qobject_cast<Corona *>(gWidget->scene());
@ -392,7 +395,9 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
lay->addItem(icon);
}
q->setMinimumSize(0,0);
if (icon) {
q->setMinimumSize(0,0);
}
}
}