From 4fb0e52515d3f65aa335b9d5df8349d33535d434 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 20 Nov 2012 13:41:59 +0100 Subject: Made QWindowsCEStyle internal We will take this opportynity to remove various QStyle specializations from the public API in Qt5. This gives us much more freedom, for example changing the inheritance hierarchy, pluginizing etc. without worrying about BC. => Use QStyleFactory and/or QProxyStyle instead of creating an instance or inheriting QWindowsCEStyle directly. Change-Id: I6b3c0554e7a2a4a5f0027f4ea1342fd332af89ad Reviewed-by: Andreas Holzammer Reviewed-by: Janne Anttila --- tests/auto/widgets/styles/qstyle/tst_qstyle.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests') 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 #endif -#ifdef Q_OS_WINCE -#include -#endif - #ifdef Q_OS_WINCE_WM #include #include @@ -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 -- cgit v1.2.3