summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
diff options
context:
space:
mode:
authorDmitry Trofimov <dmitry.trofimov@nokia.com>2011-05-31 10:19:17 (GMT)
committerDmitry Trofimov <dmitry.trofimov@nokia.com>2011-05-31 10:23:50 (GMT)
commitdf4a40c6ecfac9ff7b3c03ffed62be87047db35e (patch)
tree0cc2cecce2efedf7eccba3a9a50181745dee8ea6 /tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
parent706fc1c894addd6602470b25aba686491c891a14 (diff)
downloadQt-df4a40c6ecfac9ff7b3c03ffed62be87047db35e.zip
Qt-df4a40c6ecfac9ff7b3c03ffed62be87047db35e.tar.gz
Qt-df4a40c6ecfac9ff7b3c03ffed62be87047db35e.tar.bz2
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/tst_qstylesheetstyle.cpp')
-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 1799019..a4fc1a9 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;