From fcb270e961b0edd2f2fa33954e20f9a284048e4a Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Mon, 28 Sep 2009 13:01:37 +0300 Subject: Fixed style dependent failures for S60 in QGraphicsLinearLayout test. Since S60 does not compile QPlastiqueStyle, we use QWindowsStyle Reviewed-by: TrustMe --- tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- cgit v0.12