summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstylesheetstyle
diff options
context:
space:
mode:
authorDmitry Trofimov <dmitry.trofimov@nokia.com>2011-05-31 13:19:17 +0300
committerDmitry Trofimov <dmitry.trofimov@nokia.com>2011-05-31 13:23:50 +0300
commitdf4a40c6ecfac9ff7b3c03ffed62be87047db35e (patch)
tree0cc2cecce2efedf7eccba3a9a50181745dee8ea6 /tests/auto/qstylesheetstyle
parent706fc1c894addd6602470b25aba686491c891a14 (diff)
Fix the build break for QStyleSheetStyle autotest on Symbian
This commit fixes the build break on Symbian caused by using Motif style which is not supported in Symbian. Reviewed by: Sami Merila
Diffstat (limited to 'tests/auto/qstylesheetstyle')
-rw-r--r--tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
index 17990199ad..a4fc1a9dd6 100644
--- a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
+++ b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
@@ -1608,7 +1608,12 @@ class ChangeEventWidget : public QWidget
static bool recurse = false;
if (!recurse) {
recurse = true;
+
+#ifdef Q_OS_SYMBIAN
+ QStyle *style = new QWindowsStyle();
+#else
QStyle *style = new QMotifStyle;
+#endif
style->setParent(this);
setStyle(style);
recurse = false;