diff --git a/widgets/scrollwidget.cpp b/widgets/scrollwidget.cpp index 7eca5cb14..2675e40f2 100644 --- a/widgets/scrollwidget.cpp +++ b/widgets/scrollwidget.cpp @@ -30,6 +30,7 @@ #include #include #include +#include //Plasma #include @@ -619,6 +620,8 @@ QSizeF ScrollWidget::sizeHint(Qt::SizeHint which, const QSizeF & constraint) con if (which == Qt::PreferredSize && d->widget) { return (d->widget.data()->size()+QSize(d->borderSize, d->borderSize)).expandedTo(d->widget.data()->effectiveSizeHint(Qt::PreferredSize)); + } else if (which == Qt::MinimumSize) { + return QSizeF(KIconLoader::SizeEnormous, KIconLoader::SizeEnormous); } return hint;