should only be for preferred size

svn path=/trunk/KDE/kdelibs/; revision=1130680
This commit is contained in:
Aaron J. Seigo 2010-05-26 01:15:35 +00:00
parent b152bae01f
commit b927523850

View File

@ -427,7 +427,7 @@ void PopupAppletPrivate::appletActivated()
QSizeF PopupApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const QSizeF PopupApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const
{ {
if (!d->icon) { if (!d->icon || which != Qt::PreferredSize) {
return Applet::sizeHint(which, constraint); return Applet::sizeHint(which, constraint);
} }