diff options
author | J-P Nurmi <jpnurmi@gmail.com> | 2012-11-17 00:52:26 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-23 15:18:15 +0100 |
commit | 27aa41cbba6c0bd76148fde63863cfbba0ec2456 (patch) | |
tree | d49ef13e32d9294c30c7e2017beee3ff71264c0c /tests/auto/widgets/styles/qstyle | |
parent | d25572cc7b1dc414d2c0b1b575334f8152346a31 (diff) |
Made QMacStyle 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 QMacStyle directly.
Change-Id: I44a2f5ee3fe08ecc837b593a2a2737eb90e8c267
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'tests/auto/widgets/styles/qstyle')
-rw-r--r-- | tests/auto/widgets/styles/qstyle/tst_qstyle.cpp | 9 |
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 |