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
complexwidgets_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
COMPLEXWIDGETS_H
6
#
define
COMPLEXWIDGETS_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
<
QtWidgets
/
private
/
qtwidgetsglobal_p
.
h
>
20
#
include
<
QtCore
/
qpointer
.
h
>
21
#
include
<
QtWidgets
/
qaccessiblewidget
.
h
>
22
#
if
QT_CONFIG
(
itemviews
)
23
#
include
<
QtWidgets
/
qabstractitemview
.
h
>
24
#
endif
25
26
QT_BEGIN_NAMESPACE
27
28
#
if
QT_CONFIG
(
accessibility
)
29
30
class
QAbstractButton
;
31
class
QHeaderView
;
32
class
QTabBar
;
33
class
QComboBox
;
34
class
QTitleBar
;
35
class
QAbstractScrollArea
;
36
class
QScrollArea
;
37
38
#
if
QT_CONFIG
(
scrollarea
)
39
class
QAccessibleAbstractScrollArea
:
public
QAccessibleWidgetV2
40
{
41
public
:
42
explicit
QAccessibleAbstractScrollArea
(
QWidget
*
widget
);
43
44
enum
AbstractScrollAreaElement
{
45
Self
= 0,
46
Viewport
,
47
HorizontalContainer
,
48
VerticalContainer
,
49
CornerWidget
,
50
Undefined
51
};
52
53
QAccessibleInterface
*
child
(
int
index
)
const
override
;
54
int
childCount
()
const
override
;
55
int
indexOfChild
(
const
QAccessibleInterface
*
child
)
const
override
;
56
bool
isValid
()
const
override
;
57
QAccessibleInterface
*
childAt
(
int
x
,
int
y
)
const
override
;
58
QAbstractScrollArea
*
abstractScrollArea
()
const
;
59
60
private
:
61
QWidgetList
accessibleChildren
()
const
;
62
AbstractScrollAreaElement
elementType
(
QWidget
*
widget
)
const
;
63
bool
isLeftToRight
()
const
;
64
};
65
66
class
QAccessibleScrollArea
:
public
QAccessibleAbstractScrollArea
67
{
68
public
:
69
explicit
QAccessibleScrollArea
(
QWidget
*
widget
);
70
};
71
#
endif
// QT_CONFIG(scrollarea)
72
73
#
if
QT_CONFIG
(
tabbar
)
74
class
QAccessibleTabBar
:
public
QAccessibleWidgetV2
,
public
QAccessibleSelectionInterface
75
{
76
public
:
77
explicit
QAccessibleTabBar
(
QWidget
*
w
);
78
~
QAccessibleTabBar
();
79
80
void
*
interface_cast
(
QAccessible
::
InterfaceType
t
)
override
;
81
82
QAccessibleInterface
*
focusChild
()
const
override
;
83
int
childCount
()
const
override
;
84
QString
text
(
QAccessible
::
Text
t
)
const
override
;
85
86
QAccessibleInterface
*
child
(
int
index
)
const
override
;
87
int
indexOfChild
(
const
QAccessibleInterface
*
child
)
const
override
;
88
89
// QAccessibleSelectionInterface
90
int
selectedItemCount
()
const
override
;
91
QList
<
QAccessibleInterface
*>
selectedItems
()
const
override
;
92
QAccessibleInterface
*
selectedItem
(
int
selectionIndex
)
const
override
;
93
bool
isSelected
(
QAccessibleInterface
*
childItem
)
const
override
;
94
bool
select
(
QAccessibleInterface
*
childItem
)
override
;
95
bool
unselect
(
QAccessibleInterface
*
childItem
)
override
;
96
bool
selectAll
()
override
;
97
bool
clear
()
override
;
98
99
protected
:
100
QTabBar
*
tabBar
()
const
;
101
mutable
QHash
<
int
,
QAccessible
::
Id
>
m_childInterfaces
;
102
};
103
#
endif
// QT_CONFIG(tabbar)
104
105
#
if
QT_CONFIG
(
combobox
)
106
class
QAccessibleComboBox
:
public
QAccessibleWidgetV2
107
{
108
public
:
109
explicit
QAccessibleComboBox
(
QWidget
*
w
);
110
111
int
childCount
()
const
override
;
112
QAccessibleInterface
*
childAt
(
int
x
,
int
y
)
const
override
;
113
int
indexOfChild
(
const
QAccessibleInterface
*
child
)
const
override
;
114
QAccessibleInterface
*
child
(
int
index
)
const
override
;
115
QAccessibleInterface
*
focusChild
()
const
override
;
116
117
QString
text
(
QAccessible
::
Text
t
)
const
override
;
118
119
QAccessible
::
State
state
()
const
override
;
120
121
// QAccessibleActionInterface
122
QStringList
actionNames
()
const
override
;
123
QString
localizedActionDescription
(
const
QString
&
actionName
)
const
override
;
124
void
doAction
(
const
QString
&
actionName
)
override
;
125
QStringList
keyBindingsForAction
(
const
QString
&
actionName
)
const
override
;
126
127
protected
:
128
QComboBox
*
comboBox
()
const
;
129
};
130
#
endif
// QT_CONFIG(combobox)
131
132
#
endif
// QT_CONFIG(accessibility)
133
134
QT_END_NAMESPACE
135
136
#
endif
// COMPLEXWIDGETS_H
QSqlRelationalDelegate
\inmodule QtSql
qtbase
src
widgets
accessible
complexwidgets_p.h
Generated on
for Qt by
1.16.1