macOS: Remove dead accessibility debug code in QNSView
Change-Id: I00d7f59576d8315f47ea70404460a6e2d133dd1f Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
1918674309
commit
746f15d0c2
@ -127,11 +127,6 @@ qtHaveModule(widgets) {
|
|||||||
|
|
||||||
OTHER_FILES += cocoa.json
|
OTHER_FILES += cocoa.json
|
||||||
|
|
||||||
# Acccessibility debug support
|
|
||||||
# DEFINES += QT_COCOA_ENABLE_ACCESSIBILITY_INSPECTOR
|
|
||||||
# include ($$PWD/../../../../util/accessibilityinspector/accessibilityinspector.pri)
|
|
||||||
|
|
||||||
|
|
||||||
PLUGIN_TYPE = platforms
|
PLUGIN_TYPE = platforms
|
||||||
PLUGIN_CLASS_NAME = QCocoaIntegrationPlugin
|
PLUGIN_CLASS_NAME = QCocoaIntegrationPlugin
|
||||||
!equals(TARGET, $$QT_DEFAULT_QPA_PLUGIN): PLUGIN_EXTENDS = -
|
!equals(TARGET, $$QT_DEFAULT_QPA_PLUGIN): PLUGIN_EXTENDS = -
|
||||||
|
@ -65,10 +65,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "qcocoaintegration.h"
|
#include "qcocoaintegration.h"
|
||||||
|
|
||||||
#ifdef QT_COCOA_ENABLE_ACCESSIBILITY_INSPECTOR
|
|
||||||
#include <accessibilityinspector.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Private interface
|
// Private interface
|
||||||
@interface QT_MANGLE_NAMESPACE(QNSView) ()
|
@interface QT_MANGLE_NAMESPACE(QNSView) ()
|
||||||
- (BOOL)isTransparentForUserInput;
|
- (BOOL)isTransparentForUserInput;
|
||||||
@ -179,21 +175,6 @@
|
|||||||
// See also QCocoaGLContext::makeCurrent for software renderer workarounds.
|
// See also QCocoaGLContext::makeCurrent for software renderer workarounds.
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef QT_COCOA_ENABLE_ACCESSIBILITY_INSPECTOR
|
|
||||||
// prevent rift in space-time continuum, disable
|
|
||||||
// accessibility for the accessibility inspector's windows.
|
|
||||||
static bool skipAccessibilityForInspectorWindows = false;
|
|
||||||
if (!skipAccessibilityForInspectorWindows) {
|
|
||||||
|
|
||||||
// m_accessibleRoot = window->accessibleRoot();
|
|
||||||
|
|
||||||
AccessibilityInspector *inspector = new AccessibilityInspector(window);
|
|
||||||
skipAccessibilityForInspectorWindows = true;
|
|
||||||
inspector->inspectWindow(window);
|
|
||||||
skipAccessibilityForInspectorWindows = false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
[self registerDragTypes];
|
[self registerDragTypes];
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user