Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qplatformaccessibility.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
#
ifndef
QPLATFORMACCESSIBILITY_H
4
#
define
QPLATFORMACCESSIBILITY_H
5
6
//
7
// W A R N I N G
8
// -------------
9
//
10
// This file is part of the QPA API and is not meant to be used
11
// in applications. Usage of this API may make your code
12
// source and binary incompatible with future versions of Qt.
13
//
14
15
#
include
<
QtGui
/
qtguiglobal
.
h
>
16
17
#
if
QT_CONFIG
(
accessibility
)
18
19
#
include
<
QtCore
/
qobject
.
h
>
20
#
include
<
QtGui
/
qaccessible
.
h
>
21
22
#
include
<
optional
>
23
24
QT_BEGIN_NAMESPACE
25
26
27
class
Q_GUI_EXPORT QPlatformAccessibility
28
{
29
public
:
30
QPlatformAccessibility();
31
32
virtual
~QPlatformAccessibility();
33
virtual
void
notifyAccessibilityUpdate(QAccessibleEvent *event);
34
virtual
void
setRootObject(QObject *o);
35
virtual
void
initialize();
36
virtual
void
cleanup();
37
38
inline
bool
isActive()
const
{
return
m_active; }
39
void
setActive(
bool
active);
40
void
clearActiveNotificationState();
41
42
private
:
43
bool
m_active =
false
;
44
std::optional<
bool
> m_activeNotificationState = std::nullopt;
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QT_CONFIG(accessibility)
50
51
#
endif
// QPLATFORMACCESSIBILITY_H
qtbase
src
gui
accessible
qplatformaccessibility.h
Generated on
for Qt by
1.18.0