summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/styles/qstyle/tst_qstyle.cpp')
-rw-r--r--tests/auto/widgets/styles/qstyle/tst_qstyle.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp b/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
index 73dec7d566..d4d26cc9cf 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_WIN
-#include <QWindowsXPStyle>
-#endif
-
#ifdef Q_OS_WINCE
#include <QWindowsCEStyle>
#endif
@@ -392,9 +388,10 @@ void tst_QStyle::testWindowsStyle()
// WindowsXP style
void tst_QStyle::testWindowsXPStyle()
{
- QWindowsXPStyle xpstyle;
- QVERIFY(testAllFunctions(&xpstyle));
- lineUpLayoutTest(&xpstyle);
+ QStyle *xpstyle = QStyleFactory::create("WindowsXP");
+ QVERIFY(testAllFunctions(xpstyle));
+ lineUpLayoutTest(xpstyle);
+ delete xpstyle;
}
#endif