From 5de8d333bf1c4247bc357ce10a1a199da7080d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sun, 22 Aug 2010 09:06:37 +0000 Subject: [PATCH] QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible svn path=/trunk/KDE/kdelibs/; revision=1166625 --- dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialog.cpp b/dialog.cpp index 36db4e987..0521f2ee2 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -342,7 +342,7 @@ void Dialog::syncToGraphicsWidget() graphicsWidget->setMaximumSize(maxSize - QSize(left + right, top + bottom).boundedTo(graphicsWidget->effectiveSizeHint(Qt::MaximumSize).toSize())); - setMinimumSize(-1, -1); + setMinimumSize(0, 0); setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); QSize newSize(qMin(int(graphicsWidget->size().width()) + left + right, maxSize.width()),