summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/widgets/styles/qstyle/tst_qstyle.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp b/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
index d4d26cc9cf..3864f22059 100644
--- a/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
+++ b/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
@@ -75,10 +75,6 @@
#include <QMacStyle>
#endif
-#ifdef Q_OS_WINCE
-#include <QWindowsCEStyle>
-#endif
-
#ifdef Q_OS_WINCE_WM
#include <QWindowsMobileStyle>
#include <windows.h>
@@ -541,8 +537,9 @@ void tst_QStyle::testMacStyle()
// WindowsCEStyle style
void tst_QStyle::testWindowsCEStyle()
{
- QWindowsCEStyle cstyle;
+ QStyle *cstyle = QStyleFactory::create("WindowsCE");
QVERIFY(testAllFunctions(&cstyle));
+ delete cstyle;
}
#endif