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 |
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 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | class QQuickHeaderViewBase; |
24 | class ; |
25 | class Q_QUICKTEMPLATES2_EXPORT : public QQuickTableView |
26 | { |
27 | Q_OBJECT |
28 | Q_DECLARE_PRIVATE(QQuickHeaderViewBase) |
29 | Q_PROPERTY(QString textRole READ textRole WRITE setTextRole NOTIFY textRoleChanged FINAL) |
30 | |
31 | public: |
32 | explicit (Qt::Orientation orient, QQuickItem *parent = nullptr); |
33 | (); |
34 | |
35 | QString () const; |
36 | void (const QString &role); |
37 | |
38 | protected: |
39 | (QQuickHeaderViewBasePrivate &dd, QQuickItem *parent); |
40 | |
41 | Q_SIGNALS: |
42 | void (); |
43 | |
44 | private: |
45 | Q_DISABLE_COPY() |
46 | friend class QQuickHorizontalHeaderView; |
47 | friend class QQuickVerticalHeaderView; |
48 | }; |
49 | |
50 | class ; |
51 | class Q_QUICKTEMPLATES2_EXPORT : public QQuickHeaderViewBase |
52 | { |
53 | Q_OBJECT |
54 | Q_DECLARE_PRIVATE(QQuickHorizontalHeaderView) |
55 | Q_PROPERTY(bool movableColumns READ movableColumns WRITE setMovableColumns NOTIFY movableColumnsChanged REVISION(6, 8) FINAL) |
56 | QML_NAMED_ELEMENT(HorizontalHeaderView) |
57 | QML_ADDED_IN_VERSION(2, 15) |
58 | |
59 | public: |
60 | (QQuickItem *parent = nullptr); |
61 | () override; |
62 | |
63 | bool movableColumns() const; |
64 | void setMovableColumns(bool movableColumns); |
65 | |
66 | Q_SIGNALS: |
67 | Q_REVISION(6, 8) void movableColumnsChanged(); |
68 | |
69 | protected: |
70 | (QQuickHorizontalHeaderViewPrivate &dd, QQuickItem *parent); |
71 | |
72 | private: |
73 | Q_DISABLE_COPY() |
74 | }; |
75 | |
76 | class ; |
77 | class Q_QUICKTEMPLATES2_EXPORT : public QQuickHeaderViewBase |
78 | { |
79 | Q_OBJECT |
80 | Q_DECLARE_PRIVATE(QQuickVerticalHeaderView) |
81 | Q_PROPERTY(bool movableRows READ movableRows WRITE setMovableRows NOTIFY movableRowsChanged REVISION(6, 8) FINAL) |
82 | QML_NAMED_ELEMENT(VerticalHeaderView) |
83 | QML_ADDED_IN_VERSION(2, 15) |
84 | |
85 | public: |
86 | (QQuickItem *parent = nullptr); |
87 | () override; |
88 | |
89 | bool () const; |
90 | void (bool movableRows); |
91 | |
92 | Q_SIGNALS: |
93 | Q_REVISION(6, 8) void (); |
94 | |
95 | protected: |
96 | (QQuickVerticalHeaderViewPrivate &dd, QQuickItem *parent); |
97 | |
98 | private: |
99 | Q_DISABLE_COPY() |
100 | }; |
101 | |
102 | QT_END_NAMESPACE |
103 | |
104 | #endif // QQUICKHEADERVIEW_P_H |
105 | |