backport layout fixes here too

svn path=/branches/KDE/4.4/kdelibs/; revision=1071062
This commit is contained in:
Marco Martin 2010-01-07 12:56:59 +00:00
parent 66e7fa884b
commit e77ea715c6

View File

@ -436,6 +436,10 @@ QSizeF ToolButton::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const
{ {
QSizeF hint = QGraphicsProxyWidget::sizeHint(which, constraint); QSizeF hint = QGraphicsProxyWidget::sizeHint(which, constraint);
if (hint.isEmpty()) {
return hint;
}
//replace the native margin with the Svg one //replace the native margin with the Svg one
QStyleOption option; QStyleOption option;
option.initFrom(nativeWidget()); option.initFrom(nativeWidget());