qt5base-lts/tests/auto/widgets
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
..
dialogs Fix warnings about not being able to set Window geometry on Windows. 2013-01-08 13:54:04 +01:00
effects Make QPen default to 1-width non-cosmetic. 2012-10-22 19:36:43 +02:00
graphicsview Removed hardcoded values from tst_qgraphicsview::scrollBarRanges 2013-01-09 08:59:26 +01:00
itemviews Fix warnings about not being able to set Window geometry on Windows. 2013-01-08 13:54:04 +01:00
kernel Fix warnings about not being able to set Window geometry on Windows. 2013-01-08 13:54:04 +01:00
styles Fix QStyle-test for Windows Aero / 8. 2012-12-18 10:53:57 +01:00
util Fix warnings about not being able to set Window geometry on Windows. 2013-01-08 13:54:04 +01:00
widgets Fix warnings about not being able to set Window geometry on Windows. 2013-01-08 13:54:04 +01:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00