summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicslinearlayout
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-09-28 13:01:37 +0300
committerJanne Anttila <janne.anttila@digia.com>2009-09-28 13:01:37 +0300
commitfcb270e961b0edd2f2fa33954e20f9a284048e4a (patch)
tree31237297a4b0fd551a3c58a19bf0dbcef2bce922 /tests/auto/qgraphicslinearlayout
parent75f5c3987340926744dc5090cb11cc2713baf11e (diff)
Fixed style dependent failures for S60 in QGraphicsLinearLayout test.
Since S60 does not compile QPlastiqueStyle, we use QWindowsStyle Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto/qgraphicslinearlayout')
-rw-r--r--tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp b/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp
index 9c58b2459d..4e46819629 100644
--- a/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp
+++ b/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp
@@ -143,9 +143,11 @@ public:
// It is only called once.
void tst_QGraphicsLinearLayout::initTestCase()
{
-#ifndef Q_WS_S60
// since the style will influence the results, we have to ensure
// that the tests are run using the same style on all platforms
+#ifdef Q_WS_S60
+ QApplication::setStyle(new QWindowsStyle);
+#else
QApplication::setStyle(new QPlastiqueStyle);
#endif
}