diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-09-28 10:01:37 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-09-28 10:01:37 (GMT) |
commit | fcb270e961b0edd2f2fa33954e20f9a284048e4a (patch) | |
tree | 31237297a4b0fd551a3c58a19bf0dbcef2bce922 /tests | |
parent | 75f5c3987340926744dc5090cb11cc2713baf11e (diff) | |
download | Qt-fcb270e961b0edd2f2fa33954e20f9a284048e4a.zip Qt-fcb270e961b0edd2f2fa33954e20f9a284048e4a.tar.gz Qt-fcb270e961b0edd2f2fa33954e20f9a284048e4a.tar.bz2 |
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')
-rw-r--r-- | tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp b/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp index 9c58b24..4e46819 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 } |