From 82317bda2d299d580e4f6e7692ee0a28187f2a02 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 20 Oct 2009 21:37:46 +0000 Subject: [PATCH] take in consideration the size hint of the internal widget for the own sized hint svn path=/trunk/KDE/kdelibs/; revision=1038245 --- widgets/scrollwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/scrollwidget.cpp b/widgets/scrollwidget.cpp index 58b347354..4fa21a9e7 100644 --- a/widgets/scrollwidget.cpp +++ b/widgets/scrollwidget.cpp @@ -480,7 +480,7 @@ QSizeF ScrollWidget::sizeHint(Qt::SizeHint which, const QSizeF & constraint) con QSizeF hint = QGraphicsWidget::sizeHint(which, constraint); if (which == Qt::PreferredSize && d->widget) { - return d->widget->size(); + return d->widget->size().expandedTo(d->widget->effectiveSizeHint(Qt::PreferredSize)); } return hint;