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
27
28#if QT_CONFIG(accessibility)
29
30class QAbstractButton;
31class QHeaderView;
32class QTabBar;
33class QComboBox;
34class QTitleBar;
36class QScrollArea;
37
38#if QT_CONFIG(scrollarea)
40{
41public:
43
45 Self = 0,
51 };
52
54 int childCount() const override;
56 bool isValid() const override;
57 QAccessibleInterface *childAt(int x, int y) const override;
59
60private:
63 bool isLeftToRight() const;
64};
65
67{
68public:
70};
71#endif // QT_CONFIG(scrollarea)
72
73#if QT_CONFIG(tabbar)
75{
76public:
77 explicit QAccessibleTabBar(QWidget *w);
79
81
83 int childCount() const override;
85
88
89 // QAccessibleSelectionInterface
90 int selectedItemCount() const override;
96 bool selectAll() override;
97 bool clear() override;
98
99protected:
100 QTabBar *tabBar() const;
101 mutable QHash<int, QAccessible::Id> m_childInterfaces;
102};
103#endif // QT_CONFIG(tabbar)
104
105#if QT_CONFIG(combobox)
107{
108public:
109 explicit QAccessibleComboBox(QWidget *w);
110
111 int childCount() const override;
112 QAccessibleInterface *childAt(int x, int y) const override;
116
118
120
121 // QAccessibleActionInterface
124 void doAction(const QString &actionName) override;
126
127protected:
128 QComboBox *comboBox() const;
129};
130#endif // QT_CONFIG(combobox)
131
132#endif // QT_CONFIG(accessibility)
133
135
136#endif // COMPLEXWIDGETS_H
\inmodule QtSql