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
22QT_BEGIN_NAMESPACE
23
24
25class Q_GUI_EXPORT QPlatformAccessibility
26{
27public:
28 QPlatformAccessibility();
29
30 virtual ~QPlatformAccessibility();
31 virtual void notifyAccessibilityUpdate(QAccessibleEvent *event);
32 virtual void setRootObject(QObject *o);
33 virtual void initialize();
34 virtual void cleanup();
35
36 inline bool isActive() const { return m_active; }
37 void setActive(bool active);
38
39private:
40 bool m_active;
41};
42
43QT_END_NAMESPACE
44
45#endif // QT_CONFIG(accessibility)
46
47#endif // QPLATFORMACCESSIBILITY_H
48

source code of qtbase/src/gui/accessible/qplatformaccessibility.h