use actualSizeHints, not hard ones
svn path=/trunk/KDE/kdelibs/; revision=1055563
This commit is contained in:
parent
6d38a2a3b6
commit
b2fa0d8f32
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user