summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@digia.com>2012-12-17 14:15:59 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-09 08:59:26 +0100
commit083d2c8bb8a2a0fc92342625049bd7becdcea922 (patch)
tree2eb0fe9f3eec59eba2858ac85069bb6d3d147075 /src/plugins
parent05659223bf02c8bac0463fe1e7a9364ef5677b75 (diff)
Removed hardcoded values from tst_qgraphicsview::scrollBarRanges
Instead of testing the "windows" and "motif" styles, that test should actually test the scrollBarRanges for all available styles. To be able to do that, the magic numbers 16 (width/height of scrollbars) and 4 (spacing for the faux motif style) were replaced and instead of setting the explicit values in the data the "number of scrollbars/spacings to add/remove" is saved in a struct and the value of these (depending on the style) is obtained in the test run. This change does not also cause the fusion style to also be tested but also fixes this test for Windows 7 and 8 (Aero) where the scrollbar width/height is not 16 but 17. Task-number: QTBUG-28611 Task-number: QTBUG-29002 Change-Id: I5d103018fde81cee6e6e89cd414426768b2dc8e7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions