diff options
author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-01-30 07:42:51 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-31 16:29:43 +0200 |
commit | 28881c0c91aa53412fae32c52ab297c76e890971 (patch) | |
tree | 09f0b9daed6813e44f4abd4cf0da0dc165621e96 /src/gui/kernel/qsessionmanager.cpp | |
parent | 99ef183cb1395bab34ec8865d1d47ffa44b94a64 (diff) |
Make QGraphicsView respect scrollbar policies
When calculating the maximum height / width which a QGraphicsView can display,
make sure we only take the scrollbars' dimensions into account if their policy
is set to Qt::ScrollBarAsNeeded:
- if the policy is set to Qt::ScrollBarAlwaysOff, the scrollbar will not be
displayed at all
- if the policy is set to Qt::ScrollBarAlwaysOn, the scrollbar's dimensions
have already been substracted from the available space by
QAbstractScrollArea::maximumViewportSize()
Task-number: QTBUG-14711
Change-Id: If5d24b41dbe7b089abca2bf61ccbd370d4de79a1
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/kernel/qsessionmanager.cpp')
0 files changed, 0 insertions, 0 deletions