qt5base-lts/tests/auto/widgets/graphicsview
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
..
qgraphicsanchorlayout QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicsanchorlayout1 QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicseffectsource QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicsgridlayout Made sure items with preferred width of 0 could also stretch 2013-05-27 12:38:53 +02:00
qgraphicsitem QGV: fix items not to be selected on right mouse button release 2013-05-14 15:21:23 +02:00
qgraphicsitemanimation QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicslayout QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicslayoutitem QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicslinearlayout QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicsobject QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicspixmapitem QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicspolygonitem QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicsproxywidget Add QSKIP to hoverenter-test in tst_qgraphicsproxywidget. 2013-05-07 20:40:41 +02:00
qgraphicsscene Fix warnings about overloaded virtuals in tests (CLANG). 2013-03-12 09:16:42 +01:00
qgraphicssceneindex Stabilize tst_qgraphicssceneindex. 2013-05-23 10:02:19 +02:00
qgraphicstransform QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qgraphicsview Fix qgraphicsview autotest build for WEC7. 2013-04-17 19:49:18 +02:00
qgraphicswidget Stabilize QGraphicsWidget test. 2013-05-09 10:20:21 +02:00
graphicsview.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00