QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible

svn path=/trunk/KDE/kdelibs/; revision=1166625
This commit is contained in:
Luboš Luňák 2010-08-22 09:06:37 +00:00
parent d05a127b4a
commit 5de8d333bf

View File

@ -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()),