4#ifndef COMPLEXWIDGETS_H
5#define COMPLEXWIDGETS_H
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include <QtCore/qpointer.h>
20#include <QtWidgets/qaccessiblewidget.h>
21#if QT_CONFIG(itemviews)
22#include <QtWidgets/qabstractitemview.h>
27#if QT_CONFIG(accessibility)
34class QAbstractScrollArea;
37#if QT_CONFIG(scrollarea)
38class QAccessibleAbstractScrollArea :
public QAccessibleWidget
43 enum AbstractScrollAreaElement {
52 QAccessibleInterface *
child(
int index)
const override;
53 int childCount()
const override;
54 int indexOfChild(
const QAccessibleInterface *
child)
const override;
55 bool isValid()
const override;
56 QAccessibleInterface *childAt(
int x,
int y)
const override;
57 QAbstractScrollArea *abstractScrollArea()
const;
62 bool isLeftToRight()
const;
65class QAccessibleScrollArea :
public QAccessibleAbstractScrollArea
73class QAccessibleTabBar :
public QAccessibleWidget,
public QAccessibleSelectionInterface
76 explicit QAccessibleTabBar(
QWidget *
w);
79 void *interface_cast(QAccessible::InterfaceType
t)
override;
81 QAccessibleInterface *focusChild()
const override;
82 int childCount()
const override;
85 QAccessibleInterface*
child(
int index)
const override;
86 int indexOfChild(
const QAccessibleInterface *
child)
const override;
89 int selectedItemCount()
const override;
90 QList<QAccessibleInterface*> selectedItems()
const override;
91 QAccessibleInterface* selectedItem(
int selectionIndex)
const override;
92 bool isSelected(QAccessibleInterface *childItem)
const override;
93 bool select(QAccessibleInterface *childItem)
override;
94 bool unselect(QAccessibleInterface *childItem)
override;
96 bool clear()
override;
100 mutable QHash<int, QAccessible::Id> m_childInterfaces;
104#if QT_CONFIG(combobox)
105class QAccessibleComboBox :
public QAccessibleWidget
108 explicit QAccessibleComboBox(
QWidget *
w);
110 int childCount()
const override;
111 QAccessibleInterface *childAt(
int x,
int y)
const override;
112 int indexOfChild(
const QAccessibleInterface *
child)
const override;
113 QAccessibleInterface*
child(
int index)
const override;
114 QAccessibleInterface* focusChild()
const override;
122 QString localizedActionDescription(
const QString &actionName)
const override;
123 void doAction(
const QString &actionName)
override;
The QComboBox widget combines a button with a dropdown list.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTabBar class provides a tab bar, e.g.
Combined button and popup list for selecting options.
static jboolean selectAll(JNIEnv *, jobject)
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
selection select(topLeft, bottomRight)