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
4#ifndef COMPLEXWIDGETS_H
5#define COMPLEXWIDGETS_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
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>
23#endif
24
26
27#if QT_CONFIG(accessibility)
28
29class QAbstractButton;
30class QHeaderView;
31class QTabBar;
32class QComboBox;
33class QTitleBar;
35class QScrollArea;
36
37#if QT_CONFIG(scrollarea)
39{
40public:
42
44 Self = 0,
50 };
51
53 int childCount() const override;
55 bool isValid() const override;
56 QAccessibleInterface *childAt(int x, int y) const override;
58
59private:
62 bool isLeftToRight() const;
63};
64
66{
67public:
69};
70#endif // QT_CONFIG(scrollarea)
71
72#if QT_CONFIG(tabbar)
74{
75public:
76 explicit QAccessibleTabBar(QWidget *w);
78
80
82 int childCount() const override;
84
87
88 // QAccessibleSelectionInterface
89 int selectedItemCount() const override;
95 bool selectAll() override;
96 bool clear() override;
97
98protected:
99 QTabBar *tabBar() const;
100 mutable QHash<int, QAccessible::Id> m_childInterfaces;
101};
102#endif // QT_CONFIG(tabbar)
103
104#if QT_CONFIG(combobox)
106{
107public:
108 explicit QAccessibleComboBox(QWidget *w);
109
110 int childCount() const override;
111 QAccessibleInterface *childAt(int x, int y) const override;
115
117
119
120 // QAccessibleActionInterface
123 void doAction(const QString &actionName) override;
125
126protected:
127 QComboBox *comboBox() const;
128};
129#endif // QT_CONFIG(combobox)
130
131#endif // QT_CONFIG(accessibility)
132
134
135#endif // COMPLEXWIDGETS_H
\inmodule QtSql