All pastes #774362 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-15 06:09 UTC
rendered paste body
Index: widgets/icon.cpp
===================================================================
--- widgets/icon.cpp	(Revision 736621)
+++ widgets/icon.cpp	(Arbeitskopie)
@@ -366,6 +366,9 @@
 
 QSizeF Icon::Private::displaySizeHint(const QStyleOptionGraphicsItem *option) const
 {
+    if( text.isEmpty() && infoText.isEmpty() ) {
+      return QSizeF( .0, .0 );
+    }
     QString label = text;
     // const qreal maxWidth = (orientation == Qt::Vertical) ? iconSize.width() + 10 : 32757;
     // NOTE: find a way to use the other layoutText, it currently returns nominal width, when