Stabilize test of QSpinBox.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Fri, 7 Sep 2012 08:32:26 +0000 (10:32 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 7 Sep 2012 10:01:47 +0000 (12:01 +0200)
commit20563c1334312604a7a7fb1978e0822a78e3b90f
tree97d4922923d041298f765cac3506a768179d4736
parent75cd2dec71d81868e1c4d5df32eb602faeb165fc
Stabilize test of QSpinBox.

The test shows spurious failures in editingFinished() on some Mac
platforms (QTest::qWaitForWindowActive(testFocusWidget)).
This is apparently caused by the widget testFocusWidget (member
variable) interfering with the other tests widgets.
As it is used in one test only, instantiate it on the stack there.

Change-Id: I688cd21a2668d072660658302cf59197abe0b4d8
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp