actually resize the dialog in adjustView

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869904
This commit is contained in:
Marco Martin 2008-10-11 12:01:37 +00:00
parent 4a63440530
commit d96cc1d739

View File

@ -115,6 +115,8 @@ void DialogPrivate::adjustView()
q->setMinimumSize(qMin(int(widget->minimumSize().width()) + left + right, QWIDGETSIZE_MAX),
qMin(int(widget->minimumSize().height()) + top + bottom, QWIDGETSIZE_MAX));
q->resize(qMin(int(widget->minimumSize().width()) + left + right, QWIDGETSIZE_MAX),
qMin(int(widget->minimumSize().height()) + top + bottom, QWIDGETSIZE_MAX));
q->setMaximumSize(qMin(int(widget->maximumSize().width()) + left + right, QWIDGETSIZE_MAX),
qMin(int(widget->maximumSize().height()) + top + bottom, QWIDGETSIZE_MAX));
q->updateGeometry();