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.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp b/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
index f5358b4e15..7cbd30ebb3 100644
--- a/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
+++ b/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
@@ -71,10 +71,6 @@
#include <qmdiarea.h>
#include <qscrollarea.h>
-#ifdef Q_OS_MAC
-#include <QMacStyle>
-#endif
-
#ifdef Q_OS_WINCE_WM
#include <windows.h>
@@ -527,8 +523,9 @@ qDebug("TEST PAINTING");
#ifdef Q_OS_MAC
void tst_QStyle::testMacStyle()
{
- QMacStyle mstyle;
- QVERIFY(testAllFunctions(&mstyle));
+ QStyle *mstyle = QStyleFactory::create("Macintosh");
+ QVERIFY(testAllFunctions(mstyle));
+ delete mstyle;
}
#endif