use actualSizeHints, not hard ones

svn path=/trunk/KDE/kdelibs/; revision=1055563
This commit is contained in:
Marco Martin 2009-11-28 10:40:31 +00:00
parent 6d38a2a3b6
commit b2fa0d8f32

View File

@ -943,9 +943,9 @@ void ExtenderItemPrivate::updateSizeHints()
if (widget->isWidget()) {
QGraphicsWidget *graphicsWidget = static_cast<QGraphicsWidget*>(widget);
min = graphicsWidget->minimumSize();
pref = graphicsWidget->preferredSize();
max = graphicsWidget->maximumSize();
min = graphicsWidget->effectiveSizeHint(Qt::MinimumSize);
pref = graphicsWidget->effectiveSizeHint(Qt::PreferredSize);
max = graphicsWidget->effectiveSizeHint(Qt::MaximumSize);
} else {
min = widget->boundingRect().size();
pref = widget->boundingRect().size();