qt6-bb10/tests/auto/widgets/graphicsview
Oliver Wolff 083d2c8bb8 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>
2013-01-09 08:59:26 +01:00
..
qgraphicsanchorlayout GV auto tests: kill QWindowsStyle dependencies 2012-11-27 23:10:09 +01:00
qgraphicsanchorlayout1 Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicseffectsource Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicsgridlayout Widgets: Remove declaration of built-in and automatic metatypes. 2013-01-04 18:44:31 +01:00
qgraphicsitem Fix warnings about not being able to set Window geometry on Windows. 2013-01-08 13:54:04 +01:00
qgraphicsitemanimation Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicslayout Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicslayoutitem Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicslinearlayout Widgets: Remove declaration of built-in and automatic metatypes. 2013-01-04 18:44:31 +01:00
qgraphicsobject Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicspixmapitem Widgets: Remove declaration of built-in and automatic metatypes. 2013-01-04 18:44:31 +01:00
qgraphicspolygonitem Widgets: Remove declaration of built-in and automatic metatypes. 2013-01-04 18:44:31 +01:00
qgraphicsproxywidget Widgets: Remove declaration of built-in and automatic metatypes. 2013-01-04 18:44:31 +01:00
qgraphicsscene Widgets: Remove declaration of built-in and automatic metatypes. 2013-01-04 18:44:31 +01:00
qgraphicssceneindex Make QPen default to 1-width non-cosmetic. 2012-10-22 19:36:43 +02:00
qgraphicstransform Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicsview Removed hardcoded values from tst_qgraphicsview::scrollBarRanges 2013-01-09 08:59:26 +01:00
qgraphicswidget Widgets: Remove declaration of built-in and automatic metatypes. 2013-01-04 18:44:31 +01:00
graphicsview.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00