From eff9536215e1cd57b9a539a6500a1a53c61b4a42 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sat, 5 Jan 2008 20:25:18 +0000 Subject: [PATCH] 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 --- widgets/icon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/icon.cpp b/widgets/icon.cpp index e8e59782d..911067742 100644 --- a/widgets/icon.cpp +++ b/widgets/icon.cpp @@ -343,7 +343,7 @@ void Icon::setNumDisplayLines(int numLines) QSizeF Icon::sizeHint() const { - return d->currentSize; + return size(); } void Icon::setDrawBackground(bool draw)