Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qaccessiblequickitem_p.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// Qt-Security score:significant reason:default
4
5#ifndef QACCESSIBLEQUICKITEM_H
6#define QACCESSIBLEQUICKITEM_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuick/QQuickItem>
20#include <QtQuick/QQuickView>
21#include <QtGui/qaccessibleobject.h>
22#include <QtQuick/private/qtquickglobal_p.h>
23
25
26#if QT_CONFIG(accessibility)
27
28class QTextDocument;
29
35{
36#ifdef Q_OS_INTEGRITY
37 // force instantiation to avoid error #2045
39#endif
40public:
42
43 bool isValid() const override;
44 QWindow *window() const override;
45
46 QRect rect() const override;
47 QRect viewRect() const;
48
49 bool clipsChildren() const;
50 QAccessibleInterface *childAt(int x, int y) const override;
51
54 int childCount() const override;
56 QList<QQuickItem *> childItems() const;
57
62
63 bool isAccessible() const;
64
67
68 // Action Interface
72
73 // Value Interface
79
80
81 // Text Interface
82 void selection(int selectionIndex, int *startOffset, int *endOffset) const override;
83 int selectionCount() const override;
87
88 // cursor
89 int cursorPosition() const override;
91
92 // text
95 int *startOffset, int *endOffset) const override;
97 int *startOffset, int *endOffset) const override;
99 int *startOffset, int *endOffset) const override;
100 int characterCount() const override;
101
102 // character <-> geometry
103 QRect characterRect(int /* offset */) const override { return QRect(); }
104 int offsetAtPoint(const QPoint & /* point */) const override { return -1; }
105
106 void scrollToSubstring(int /* startIndex */, int /* endIndex */) override {}
107 QString attributes(int /* offset */, int *startOffset, int *endOffset) const override
108 { *startOffset = 0; *endOffset = 0; return QString(); }
109
111
112 // QAccessibleAttributesInterface
115
116protected:
117 QQuickItem *item() const { return static_cast<QQuickItem*>(object()); }
119
120private:
121 // for Text nodes:
123 typedef QHash<int, QAccessible::Id> ChildCache;
124 mutable ChildCache m_childToId;
125
126};
127
130
131#endif // accessibility
132
134
135#endif // QACCESSIBLEQUICKITEM_H
\inmodule QtSql