Compile cocoa with QT_NO_ACCESSIBILITY
Change-Id: I82b5dbf1bce94bd928eee207992c0036edc527ad Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
39964b94c9
commit
5b19228c2a
@ -128,7 +128,9 @@ private:
|
||||
QAbstractEventDispatcher *mEventDispatcher;
|
||||
|
||||
QScopedPointer<QPlatformInputContext> mInputContext;
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
QScopedPointer<QPlatformAccessibility> mAccessibility;
|
||||
#endif
|
||||
QScopedPointer<QPlatformTheme> mPlatformTheme;
|
||||
QList<QCocoaScreen *> mScreens;
|
||||
QCocoaClipboard *mCocoaClipboard;
|
||||
|
@ -180,7 +180,9 @@ QCocoaIntegration::QCocoaIntegration()
|
||||
: mFontDb(new QCoreTextFontDatabase())
|
||||
, mEventDispatcher(new QCocoaEventDispatcher())
|
||||
, mInputContext(new QCocoaInputContext)
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
, mAccessibility(new QPlatformAccessibility)
|
||||
#endif
|
||||
, mCocoaClipboard(new QCocoaClipboard)
|
||||
, mCocoaDrag(new QCocoaDrag)
|
||||
, mNativeInterface(new QCocoaNativeInterface)
|
||||
@ -352,7 +354,11 @@ QPlatformInputContext *QCocoaIntegration::inputContext() const
|
||||
|
||||
QPlatformAccessibility *QCocoaIntegration::accessibility() const
|
||||
{
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
return mAccessibility.data();
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
QPlatformClipboard *QCocoaIntegration::clipboard() const
|
||||
|
Loading…
Reference in New Issue
Block a user