diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-03-20 16:38:36 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-09 10:46:02 +0200 |
commit | ccdfe354a64d145fc457d123c5d9b0bf15575738 (patch) | |
tree | d4fb1a3ba601797d56de49e3fb54e52a608f0f88 /tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac_helpers.h | |
parent | 7537a4605ad65a039f5e9812939a13fbf7656e29 (diff) |
Accessibility Mac: Cache Accessible Elements and Notify about changes
The big change is that we now keep the id objects representing accessibles
around so that they are persistent for ATs.
This improves performance of Mac accessibility significantly.
This is required for notifications which are now sent so that many things work much better,
for example the VoiceOver focus follows the keyboard focus.
The parent element in QCocoaAccessibleElement was removed, we can
dynamically access it more reliably.
Change-Id: I686d212f40d28b392dcc22f16f3c3430f08bdc98
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac_helpers.h')
-rw-r--r-- | tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac_helpers.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac_helpers.h b/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac_helpers.h index 635b6383ab..818cabb000 100644 --- a/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac_helpers.h +++ b/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac_helpers.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the test suite of the Qt Toolkit. @@ -42,11 +42,13 @@ #include <QtCore/QPair> #include <QtWidgets/QWidget> - #pragma once // Yeah, it's deprecated in general, but it's standard practice for Mac OS X. +QT_USE_NAMESPACE + bool macNativeAccessibilityEnabled(); bool trusted(); bool testLineEdit(); bool testHierarchy(QWidget *w); bool singleWidget(); +bool notifications(QWidget *w); |