qt5base-lts/tests/auto/widgets/graphicsview/qgraphicswidget
Friedemann Kleint 3690bcfda3 Refactor tst_QGraphicsWidget::setTabOrderAndReparent().
The test produces compiler warnings in release builds:

tst_qgraphicswidget.cpp: In member function 'void tst_QGraphicsWidget::setTabOrderAndReparent()':
tst_qgraphicswidget.cpp:1521:89: warning: 'w2' may be used uninitialized in this function [-Wmaybe-uninitialized]
tst_qgraphicswidget.cpp:1536:88: warning: 'w1' may be used uninitialized in this function [-Wmaybe-uninitialized]

Use arrays instead of the variables w1,2... and rewrite the helper
function compareFocusChain() to work on iterators allowing to
remove some temporary lists. Also return error messages in a
QByteArray ready for the Q[TRY_]VERIFY2 macros.

Change-Id: I43466921af59521d1faf00b75fe943508418abb3
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2015-12-22 11:45:47 +00:00
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST Tests: Blacklist tests for ubuntu 14.04 2015-04-01 13:59:04 +00:00
qgraphicswidget.pro QGraphicsView tests: Remove QT_DISABLE_DEPRECATED_BEFORE=0. 2015-08-22 05:55:24 +00:00
tst_qgraphicswidget.cpp Refactor tst_QGraphicsWidget::setTabOrderAndReparent(). 2015-12-22 11:45:47 +00:00