don't mess with widget maximum size

avoids some resize dance or widgets misteriously growing
This commit is contained in:
Marco Martin 2012-09-20 13:28:38 +02:00
parent 8db63c42a9
commit bff36e9d25

View File

@ -306,8 +306,6 @@ void Dialog::syncToGraphicsWidget()
QDesktopWidget *desktop = QApplication::desktop();
QSize maxSize = desktop->availableGeometry(desktop->screenNumber(this)).size();
graphicsWidget->setMaximumSize(maxSize - QSize(left + right, top + bottom).boundedTo(graphicsWidget->effectiveSizeHint(Qt::MaximumSize).toSize()));
setMinimumSize(0, 0);
setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);