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
31{
32public:
34
35 bool isValid() const override;
36 QWindow *window() const override;
37
38 QRect rect() const override;
39 QRect viewRect() const;
40
41 bool clipsChildren() const;
42 QAccessibleInterface *childAt(int x, int y) const override;
43
46 int childCount() const override;
48 QList<QQuickItem *> childItems() const;
49
54
55 bool isAccessible() const;
56
59
60 // Action Interface
64
65 // Value Interface
71
72
73 // Text Interface
74 void selection(int selectionIndex, int *startOffset, int *endOffset) const override;
75 int selectionCount() const override;
79
80 // cursor
81 int cursorPosition() const override;
83
84 // text
87 int *startOffset, int *endOffset) const override;
89 int *startOffset, int *endOffset) const override;
91 int *startOffset, int *endOffset) const override;
92 int characterCount() const override;
93
94 // character <-> geometry
95 QRect characterRect(int /* offset */) const override { return QRect(); }
96 int offsetAtPoint(const QPoint & /* point */) const override { return -1; }
97
98 void scrollToSubstring(int /* startIndex */, int /* endIndex */) override {}
99 QString attributes(int /* offset */, int *startOffset, int *endOffset) const override
100 { *startOffset = 0; *endOffset = 0; return QString(); }
101
103
104protected:
105 QQuickItem *item() const { return static_cast<QQuickItem*>(object()); }
107
108private:
109 // for Text nodes:
111 typedef QHash<int, QAccessible::Id> ChildCache;
112 mutable ChildCache m_childToId;
113
114};
115
118
119#endif // accessibility
120
122
123#endif // QACCESSIBLEQUICKITEM_H
\inmodule QtSql