Make icon applets to work in panel:

sizehint of icon widget returns size() instead of the stored one to preventing returning (-1,-1) for the first time
and initialize a size in the icon applet

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757756
This commit is contained in:
Marco Martin 2008-01-05 20:25:18 +00:00
parent ed93750db3
commit eff9536215

View File

@ -343,7 +343,7 @@ void Icon::setNumDisplayLines(int numLines)
QSizeF Icon::sizeHint() const QSizeF Icon::sizeHint() const
{ {
return d->currentSize; return size();
} }
void Icon::setDrawBackground(bool draw) void Icon::setDrawBackground(bool draw)