[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.6/kdelibs/plasma
From: Marco Martin <notmart () gmail ! com>
Date: 2011-01-04 19:11:16
Message-ID: 20110104191116.733BDAC8AE () svn ! kde ! org
[Download RAW message or body]
SVN commit 1211734 by mart:
backport use of sizehint
M +3 -3 dialog.cpp
--- branches/KDE/4.6/kdelibs/plasma/dialog.cpp #1211733:1211734
@@ -312,9 +312,9 @@
QSize newSize(qMin(int(graphicsWidget->size().width()) + left + right, \
maxSize.width()),
qMin(int(graphicsWidget->size().height()) + top + bottom, \
maxSize.height()));
- //FIXME: hardcoded extra boder for a possible scrollbar in an extender based \
dialog
- QSize newMinimumSize(qMin(int(graphicsWidget->minimumSize().width()) + left \
+ right + 32, maxSize.width()),
- qMin(int(graphicsWidget->minimumSize().height()) + top + \
bottom, maxSize.height())); + const QSizeF minimum = \
graphicsWidget->effectiveSizeHint(Qt::MinimumSize); + QSize \
newMinimumSize(qMin(int(minimum.width()) + left + right, maxSize.width()), + \
qMin(int(minimum.height()) + top + bottom, maxSize.height()));
QSize newMaximumSize(qMin(int(graphicsWidget->maximumSize().width()) + left \
+ right, maxSize.width()),
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic