qt5base-lts/tests/auto/widgets/graphicsview/qgraphicsview
Jeremy Lainé 28881c0c91 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>
2012-08-31 16:29:43 +02:00
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
qgraphicsview.pro tst_qgraphicsview: increase test timeout further 2012-08-13 07:14:40 +02:00
tst_qgraphicsview_2.cpp Make QGraphicsView respect scrollbar policies 2012-08-31 16:29:43 +02:00
tst_qgraphicsview.cpp Speed up tst_QGraphicsView::mapToScene test 2012-08-13 09:32:21 +02:00