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
qaccessiblequicktextedit_p.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
QACCESSIBLEQUICKTEXTEDIT_H
6
#
define
QACCESSIBLEQUICKTEXTEDIT_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
"qaccessiblequickitem_p.h"
20
21
#
include
<
QtQuick
/
private
/
qquicktextedit_p
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
#
if
QT_CONFIG
(
accessibility
)
26
27
class
Q_QUICK_EXPORT QAccessibleQuickTextEdit :
public
QAccessibleQuickItem,
28
public
QAccessibleEditableTextInterface
29
{
30
public
:
31
QAccessibleQuickTextEdit(QQuickTextEdit *textEdit);
32
33
void
removeSelection(
int
selectionIndex) override;
34
void
setSelection(
int
selectionIndex,
int
startOffset,
int
endOffset) override;
35
36
// QAccessibleInterface interface
37
void
*interface_cast(QAccessible::InterfaceType) override;
38
39
// QAccessibleEditableTextInterface interface
40
void
deleteText(
int
startOffset,
int
endOffset) override;
41
void
insertText(
int
offset,
const
QString &text) override;
42
void
replaceText(
int
startOffset,
int
endOffset,
const
QString &text) override;
43
44
private
:
45
QQuickTextEdit *textEdit()
const
{
return
static_cast
<QQuickTextEdit *>(item()); }
46
};
47
48
#
endif
// accessibility
49
50
QT_END_NAMESPACE
51
52
#
endif
// QACCESSIBLEQUICKTEXTEDIT_H
qtdeclarative
src
quick
accessible
qaccessiblequicktextedit_p.h
Generated on
for Qt by
1.18.0