diff options
Diffstat (limited to 'tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp')
-rw-r--r-- | tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp b/tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp index caf030e3b6..4b2124e8d4 100644 --- a/tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp +++ b/tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp @@ -59,9 +59,6 @@ #include <QStyleOptionTitleBar> #include <QPushButton> #include <QSizeGrip> -#if defined(Q_OS_MAC) && !defined(QT_NO_STYLE_MAC) -#include <QMacStyle> -#endif #include "../../../qtest-config.h" @@ -598,7 +595,7 @@ void tst_QMdiSubWindow::showShaded() QPoint mousePosition(window->width() - qMax(offset, 2), window->height() - qMax(offset, 2)); QWidget *mouseReceiver = 0; #ifdef Q_OS_MAC - if (qobject_cast<QMacStyle*>(window->style())) + if (window->style()->inherits("QMacStyle")) mouseReceiver = qFindChild<QSizeGrip *>(window); else #endif @@ -1704,7 +1701,7 @@ void tst_QMdiSubWindow::fixedMinMaxSize() int minimizedHeight = subWindow->style()->pixelMetric(QStyle::PM_TitleBarHeight, &options); #if defined(Q_OS_MAC) && !defined(QT_NO_STYLE_MAC) // ### Remove this after mac style has been fixed - if (qobject_cast<QMacStyle *>(subWindow->style())) + if (subWindow->style()->inherits("QMacStyle")) minimizedHeight -= 4; #endif if (!subWindow->style()->styleHint(QStyle::SH_TitleBar_NoBorder, &options, subWindow)) |