# DEFINES += QT_COCOA_ENABLE_ACCESSIBILITY_INSPECTOR
# include ($$PWD/../../../../util/accessibilityinspector/accessibilityinspector.pri)
+# Accessibility is currently unstable and disabled.
+DEFINES += QT_NO_COCOA_ACCESSIBILITY
+
# Window debug support
#DEFINES += QT_COCOA_ENABLE_WINDOW_DEBUG
#include <Cocoa/Cocoa.h>
#include <QtGui>
+
+#ifndef QT_NO_COCOA_ACCESSIBILITY
+
#include <qpa/qplatformaccessibility.h>
class QCococaAccessibility : public QPlatformAccessibility
}
+#endif // QT_NO_COCOA_ACCESSIBILITY
+
#endif
#include <qaccessible2.h>
#include <private/qcore_mac_p.h>
+#ifndef QT_NO_COCOA_ACCESSIBILITY
+
QCococaAccessibility::QCococaAccessibility()
{
}
} // namespace QCocoaAccessible
+
+#endif // QT_NO_COCOA_ACCESSIBILITY
#import <Cocoa/Cocoa.h>
#import <AppKit/NSAccessibility.h>
+#ifndef QT_NO_COCOA_ACCESSIBILITY
+
@class QCocoaAccessibleElement;
@interface QCocoaAccessibleElement : NSObject {
@end
+#endif // QT_NO_COCOA_ACCESSIBILITY
+
#endif
#import <AppKit/NSAccessibility.h>
+#ifndef QT_NO_COCOA_ACCESSIBILITY
+
static QAccessibleInterface *acast(void *ptr)
{
return reinterpret_cast<QAccessibleInterface *>(ptr);
}
@end
+
+#endif // QT_NO_COCOA_ACCESSIBILITY
+
QAbstractEventDispatcher *mEventDispatcher;
QScopedPointer<QPlatformInputContext> mInputContext;
-#ifndef QT_NO_ACCESSIBILITY
+#ifndef QT_NO_COCOA_ACCESSIBILITY
QScopedPointer<QPlatformAccessibility> mAccessibility;
#endif
QScopedPointer<QPlatformTheme> mPlatformTheme;
: mFontDb(new QCoreTextFontDatabase())
, mEventDispatcher(new QCocoaEventDispatcher())
, mInputContext(new QCocoaInputContext)
-#ifndef QT_NO_ACCESSIBILITY
+#ifndef QT_NO_COCOA_ACCESSIBILITY
, mAccessibility(new QCococaAccessibility)
#endif
, mCocoaClipboard(new QCocoaClipboard)
QPlatformAccessibility *QCocoaIntegration::accessibility() const
{
-#ifndef QT_NO_ACCESSIBILITY
+#ifndef QT_NO_COCOA_ACCESSIBILITY
return mAccessibility.data();
#else
return 0;
#import <AppKit/NSAccessibility.h>
+#ifndef QT_NO_COCOA_ACCESSIBILITY
+
@implementation QNSView (QNSViewAccessibility)
// The QNSView is a container that the user does not interact directly with:
}
@end
+
+#endif // QT_NO_COCOA_ACCESSIBILITY