qt5base-lts/tests/auto/widgets
Jan Arve Saether cf366e8b86 Made sure items with preferred width of 0 could also stretch
If no stretch factors were specified, we used the preferred size as a
stretch factor. Obviously, that didn't work if the preferred size was
actually 0.

This patch works around this by actually setting the stretch factor to
1.0 if this is the case.
This should work fine in most cases, except for the case where there
are also other items with a preferred size close to 0.
In this case, the item with preferred size 0 will just grow
faster than an item with e.g. preferred size 0.1.

Task-number: QTBUG-31217

Change-Id: I966455da0bdd00308591c7f7cfbc4e134d423e57
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
2013-05-27 12:38:53 +02:00
..
dialogs Fixed autotest build for configurations without printsupport 2013-05-21 07:25:39 +02:00
effects QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
graphicsview Made sure items with preferred width of 0 could also stretch 2013-05-27 12:38:53 +02:00
itemviews Disabling some concurrency in widget tests 2013-05-10 17:31:52 +02:00
kernel test: Remove XFAIL from tst_qwidget 2013-05-13 13:29:48 +02:00
styles Fix tst_qstyle autotest build for WEC7. 2013-04-17 19:49:02 +02:00
util Stabilize tst_qcompleter. 2013-04-05 11:28:47 +02:00
widgets tst_qmdiarea: Prevent scrollbars from messing up expected viewport calculation 2013-05-14 15:17:18 +02:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00