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:
parent
ed93750db3
commit
eff9536215
@ -343,7 +343,7 @@ void Icon::setNumDisplayLines(int numLines)
|
||||
|
||||
QSizeF Icon::sizeHint() const
|
||||
{
|
||||
return d->currentSize;
|
||||
return size();
|
||||
}
|
||||
|
||||
void Icon::setDrawBackground(bool draw)
|
||||
|
Loading…
Reference in New Issue
Block a user