From ac68ae4d5f186bebb154d553e8f3a7e31ab78568 Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Fri, 25 Sep 2009 13:02:41 +0300 Subject: Fix QGraphicsLinearLayout autotest for Symbian OS. QPlastiqueStyle is not compiled for Symbian OS, but default ones seems to make the job fine since all get passed. Reviewed-by: Janne Koskinen --- tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp b/tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp index 32054db..9c58b24 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 QApplication::setStyle(new QPlastiqueStyle); +#endif } // This will be called after the last test function is executed. -- cgit v0.12