QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible
svn path=/trunk/KDE/kdelibs/; revision=1166625
This commit is contained in:
parent
d05a127b4a
commit
5de8d333bf
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user