make use of QT_REQUIRE_CONFIG() in platformsupport modules

Change-Id: I26fbe75c65c10d68454e64e306f7155367e66cf6
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
Oswald Buddenhagen 2016-09-29 10:46:59 +02:00 committed by Oswald Buddenhagen
parent f25afef61d
commit d976cee1e5
12 changed files with 28 additions and 29 deletions

View File

@ -1,7 +1,7 @@
TARGET = QtAccessibilitySupport
MODULE = accessibility_support
QT = core-private gui
QT = core-private gui-private
CONFIG += static internal_module
DEFINES += QT_NO_CAST_FROM_ASCII

View File

@ -39,8 +39,6 @@
#include "qaccessiblebridgeutils_p.h"
#include <QtCore/qmath.h>
#ifndef QT_NO_ACCESSIBILITY
QT_BEGIN_NAMESPACE
namespace QAccessibleBridgeUtils {
@ -113,5 +111,3 @@ bool performEffectiveAction(QAccessibleInterface *iface, const QString &actionNa
} //namespace
QT_END_NAMESPACE
#endif

View File

@ -51,10 +51,12 @@
// We mean it.
//
#include <QtGui/private/qtguiglobal_p.h>
#include <QtCore/qstringlist.h>
#include <QtGui/qaccessible.h>
#ifndef QT_NO_ACCESSIBILITY
QT_REQUIRE_CONFIG(accessibility);
QT_BEGIN_NAMESPACE
@ -65,6 +67,4 @@ namespace QAccessibleBridgeUtils {
QT_END_NAMESPACE
#endif
#endif //QACCESSIBLEBRIDGEUTILS_H

View File

@ -51,12 +51,13 @@
// We mean it.
//
#include <QtGui/private/qtguiglobal_p.h>
#include <QtCore/QPointer>
#include <QtCore/QQueue>
#include <QtDBus/QDBusConnection>
#include <QtGui/QAccessibleInterface>
#ifndef QT_NO_ACCESSIBILITY
QT_REQUIRE_CONFIG(accessibility);
QT_BEGIN_NAMESPACE
@ -94,6 +95,4 @@ private:
QT_END_NAMESPACE
#endif //QT_NO_ACCESSIBILITY
#endif

View File

@ -54,6 +54,7 @@
#include <atspi/atspi-constants.h>
#include <QtGui/private/qtguiglobal_p.h>
#include <QtCore/qsharedpointer.h>
#include <QtDBus/qdbusvirtualobject.h>
#include <QtGui/qaccessible.h>
@ -61,7 +62,8 @@
#include "dbusconnection_p.h"
#include "struct_marshallers_p.h"
#ifndef QT_NO_ACCESSIBILITY
QT_REQUIRE_CONFIG(accessibility);
QT_BEGIN_NAMESPACE
class QAccessibleInterface;
@ -222,6 +224,5 @@ private:
};
QT_END_NAMESPACE
#endif //QT_NO_ACCESSIBILITY
#endif

View File

@ -52,12 +52,14 @@
// We mean it.
//
#include <QtGui/private/qtguiglobal_p.h>
#include <QtDBus/qdbusconnection.h>
#include <qpa/qplatformaccessibility.h>
class DeviceEventControllerAdaptor;
#ifndef QT_NO_ACCESSIBILITY
QT_REQUIRE_CONFIG(accessibility);
QT_BEGIN_NAMESPACE
class DBusConnection;
@ -89,6 +91,5 @@ private:
};
QT_END_NAMESPACE
#endif //QT_NO_ACCESSIBILITY
#endif

View File

@ -52,10 +52,12 @@
// We mean it.
//
#include <QtGui/private/qtguiglobal_p.h>
#include <QtCore/QObject>
#include "struct_marshallers_p.h"
#ifndef QT_NO_ACCESSIBILITY
QT_REQUIRE_CONFIG(accessibility);
QT_BEGIN_NAMESPACE
class QSpiDBusCache : public QObject
@ -76,6 +78,5 @@ public Q_SLOTS:
};
QT_END_NAMESPACE
#endif //QT_NO_ACCESSIBILITY
#endif /* Q_SPI_CACHE_H */

View File

@ -58,10 +58,11 @@
#include "struct_marshallers_p.h"
#include <QtGui/private/qtguiglobal_p.h>
#include <QtGui/QAccessible>
#include <atspi/atspi-constants.h>
#ifndef QT_NO_ACCESSIBILITY
QT_REQUIRE_CONFIG(accessibility);
// interface names from at-spi2-core/atspi/atspi-misc-private.h
#define ATSPI_DBUS_NAME_REGISTRY "org.a11y.atspi.Registry"
@ -141,6 +142,5 @@ QSpiUIntList spiStateSetFromSpiStates(quint64 states);
AtspiRelationType qAccessibleRelationToAtSpiRelation(QAccessible::Relation relation);
QT_END_NAMESPACE
#endif //QT_NO_ACCESSIBILITY
#endif /* Q_SPI_CONSTANT_MAPPINGS_H */

View File

@ -52,13 +52,15 @@
// We mean it.
//
#include <QtGui/private/qtguiglobal_p.h>
#include <QtCore/qvector.h>
#include <QtCore/qpair.h>
#include <QtDBus/QDBusArgument>
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusObjectPath>
#ifndef QT_NO_ACCESSIBILITY
QT_REQUIRE_CONFIG(accessibility);
QT_BEGIN_NAMESPACE
typedef QVector<int> QSpiIntList;
@ -192,5 +194,4 @@ Q_DECLARE_METATYPE(QSpiAttributeSet)
Q_DECLARE_METATYPE(QSpiAppUpdate)
Q_DECLARE_METATYPE(QSpiDeviceEvent)
#endif //QT_NO_ACCESSIBILITY
#endif /* Q_SPI_STRUCT_MARSHALLERS_H */

View File

@ -52,9 +52,9 @@
// We mean it.
//
#include <QtCore/qglobal.h>
#include <QtGui/private/qtguiglobal_p.h>
#ifndef QT_NO_SYSTEMTRAYICON
QT_REQUIRE_CONFIG(systemtrayicon);
#include <QIcon>
#include <QTemporaryFile>
@ -165,5 +165,4 @@ private:
QT_END_NAMESPACE
#endif // QT_NO_SYSTEMTRAYICON
#endif // QDBUSTRAYICON_H

View File

@ -52,7 +52,9 @@
// We mean it.
//
#ifndef QT_NO_SYSTEMTRAYICON
#include <QtGui/private/qtguiglobal_p.h>
QT_REQUIRE_CONFIG(systemtrayicon);
#include <QObject>
#include <QString>
@ -104,5 +106,4 @@ Q_DECLARE_METATYPE(QXdgDBusImageStruct)
Q_DECLARE_METATYPE(QXdgDBusImageVector)
Q_DECLARE_METATYPE(QXdgDBusToolTipStruct)
#endif // QT_NO_SYSTEMTRAYICON
#endif // QDBUSTRAYTYPES_P_H

View File

@ -62,9 +62,9 @@
// We mean it.
//
#include <QtCore/qglobal.h>
#include <QtGui/private/qtguiglobal_p.h>
#ifndef QT_NO_SYSTEMTRAYICON
QT_REQUIRE_CONFIG(systemtrayicon);
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
@ -200,5 +200,5 @@ private:
};
QT_END_NAMESPACE
#endif // QT_NO_SYSTEMTRAYICON
#endif // QSTATUSNOTIFIERITEMADAPTER_P_H