Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickheaderview_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QQUICKHEADERVIEW_P_H
5#define QQUICKHEADERVIEW_P_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 <private/qquicktableview_p.h>
19#include <private/qtquicktemplates2global_p.h>
20
22
25class Q_QUICKTEMPLATES2_EXPORT QQuickHeaderViewBase : public QQuickTableView
26{
28 Q_DECLARE_PRIVATE(QQuickHeaderViewBase)
29 Q_PROPERTY(QString textRole READ textRole WRITE setTextRole NOTIFY textRoleChanged FINAL)
30
31public:
32 explicit QQuickHeaderViewBase(Qt::Orientation orient, QQuickItem *parent = nullptr);
34
35 QString textRole() const;
36 void setTextRole(const QString &role);
37
38protected:
40
42 void textRoleChanged();
43
45 Q_DISABLE_COPY(QQuickHeaderViewBase)
48};
49
51class Q_QUICKTEMPLATES2_EXPORT QQuickHorizontalHeaderView : public QQuickHeaderViewBase
52{
54 Q_DECLARE_PRIVATE(QQuickHorizontalHeaderView)
55 QML_NAMED_ELEMENT(HorizontalHeaderView)
57
58public:
59 QQuickHorizontalHeaderView(QQuickItem *parent = nullptr);
61
62protected:
64
65private:
66 Q_DISABLE_COPY(QQuickHorizontalHeaderView)
67};
68
70class Q_QUICKTEMPLATES2_EXPORT QQuickVerticalHeaderView : public QQuickHeaderViewBase
71{
73 Q_DECLARE_PRIVATE(QQuickVerticalHeaderView)
74 QML_NAMED_ELEMENT(VerticalHeaderView)
76
77public:
78 QQuickVerticalHeaderView(QQuickItem *parent = nullptr);
80
81protected:
83
84private:
85 Q_DISABLE_COPY(QQuickVerticalHeaderView)
86};
87
89
90#endif // QQUICKHEADERVIEW_P_H
QQuickHorizontalHeaderView(QQuickHorizontalHeaderViewPrivate &dd, QQuickItem *parent)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
Definition qcompare.h:63
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
#define explicit