diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-06-21 09:36:13 +0200 |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-06-21 13:52:20 +0200 |
commit | f9ae26acf20dc90f578b191fe906ab680b4fc97b (patch) | |
tree | 8315268fe1bc76bd19500ff4d4c78791986d595c /tests/auto/qlayout | |
parent | 84d0a2cc8ef0fbd58387b71ec53af25072d9ae90 (diff) |
Fixed compile of autotests for Mac & QPA
Several autotests were assuming that Q_OS_MAC == Mac cocoa port, which
caused compile failures when QPA is used.
Change-Id: I4480ed815c15b6d9ce83edf0057b7293f2e3ad7e
Reviewed-on: http://codereview.qt.nokia.com/533
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'tests/auto/qlayout')
-rw-r--r-- | tests/auto/qlayout/tst_qlayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qlayout/tst_qlayout.cpp b/tests/auto/qlayout/tst_qlayout.cpp index eb651f485b..81b92cadec 100644 --- a/tests/auto/qlayout/tst_qlayout.cpp +++ b/tests/auto/qlayout/tst_qlayout.cpp @@ -56,7 +56,7 @@ #include <QRadioButton> #include <private/qlayoutengine_p.h> -#ifdef Q_OS_MAC +#ifdef Q_WS_MAC # include <QtGui/QMacStyle> #endif @@ -280,7 +280,7 @@ public: void tst_QLayout::layoutItemRect() { -#ifdef Q_OS_MAC +#ifdef Q_WS_MAC if (qobject_cast<QMacStyle*>(QApplication::style())) { QWidget *window = new QWidget; QRadioButton *radio = new QRadioButton(window); |