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>
This commit is contained in:
parent
84d0a2cc8e
commit
f9ae26acf2
@ -38,7 +38,7 @@ SUBDIRS=\
|
|||||||
contains(QT_CONFIG, accessibility):SUBDIRS += qaccessibility
|
contains(QT_CONFIG, accessibility):SUBDIRS += qaccessibility
|
||||||
|
|
||||||
contains(QT_CONFIG, OdfWriter):SUBDIRS += qzip qtextodfwriter
|
contains(QT_CONFIG, OdfWriter):SUBDIRS += qzip qtextodfwriter
|
||||||
mac: {
|
mac:!qpa {
|
||||||
SUBDIRS += macgui \
|
SUBDIRS += macgui \
|
||||||
macnativeevents \
|
macnativeevents \
|
||||||
macplist \
|
macplist \
|
||||||
|
@ -4,7 +4,7 @@ QT += core-private gui-private
|
|||||||
|
|
||||||
SOURCES += tst_qfontdialog.cpp
|
SOURCES += tst_qfontdialog.cpp
|
||||||
|
|
||||||
mac {
|
mac:!qpa {
|
||||||
OBJECTIVE_SOURCES += tst_qfontdialog_mac_helpers.mm
|
OBJECTIVE_SOURCES += tst_qfontdialog_mac_helpers.mm
|
||||||
LIBS += -framework Cocoa
|
LIBS += -framework Cocoa
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
#include <QRadioButton>
|
#include <QRadioButton>
|
||||||
#include <private/qlayoutengine_p.h>
|
#include <private/qlayoutengine_p.h>
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_WS_MAC
|
||||||
# include <QtGui/QMacStyle>
|
# include <QtGui/QMacStyle>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -280,7 +280,7 @@ public:
|
|||||||
|
|
||||||
void tst_QLayout::layoutItemRect()
|
void tst_QLayout::layoutItemRect()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_WS_MAC
|
||||||
if (qobject_cast<QMacStyle*>(QApplication::style())) {
|
if (qobject_cast<QMacStyle*>(QApplication::style())) {
|
||||||
QWidget *window = new QWidget;
|
QWidget *window = new QWidget;
|
||||||
QRadioButton *radio = new QRadioButton(window);
|
QRadioButton *radio = new QRadioButton(window);
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
#include <qmacstyle_mac.h>
|
#include <qmacstyle_mac.h>
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_WS_MAC
|
||||||
|
|
||||||
const int N = 1;
|
const int N = 1;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ aix-g++*:QMAKE_CXXFLAGS+=-fpermissive
|
|||||||
|
|
||||||
CONFIG += x11inc
|
CONFIG += x11inc
|
||||||
|
|
||||||
mac {
|
mac:!qpa {
|
||||||
LIBS += -framework Security -framework AppKit -framework Carbon
|
LIBS += -framework Security -framework AppKit -framework Carbon
|
||||||
OBJECTIVE_SOURCES += tst_qwidget_mac_helpers.mm
|
OBJECTIVE_SOURCES += tst_qwidget_mac_helpers.mm
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user