1 | // Copyright (C) 2021 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 QQUICKDAYOFWEEKROW_P_H |
5 | #define QQUICKDAYOFWEEKROW_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 <QtQuickTemplates2/private/qquickcontrol_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QQmlComponent; |
23 | class QQuickDayOfWeekRowPrivate; |
24 | |
25 | class QQuickDayOfWeekRow : public QQuickControl |
26 | { |
27 | Q_OBJECT |
28 | Q_PROPERTY(QVariant source READ source WRITE setSource NOTIFY sourceChanged FINAL) |
29 | Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL) |
30 | QML_NAMED_ELEMENT(AbstractDayOfWeekRow) |
31 | QML_ADDED_IN_VERSION(6, 3) |
32 | |
33 | public: |
34 | explicit QQuickDayOfWeekRow(QQuickItem *parent = nullptr); |
35 | |
36 | QVariant source() const; |
37 | void setSource(const QVariant &source); |
38 | |
39 | QQmlComponent *delegate() const; |
40 | void setDelegate(QQmlComponent *delegate); |
41 | |
42 | Q_SIGNALS: |
43 | void sourceChanged(); |
44 | void delegateChanged(); |
45 | |
46 | protected: |
47 | void componentComplete() override; |
48 | void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override; |
49 | void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override; |
50 | void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override; |
51 | |
52 | private: |
53 | Q_DISABLE_COPY(QQuickDayOfWeekRow) |
54 | Q_DECLARE_PRIVATE(QQuickDayOfWeekRow) |
55 | }; |
56 | |
57 | QT_END_NAMESPACE |
58 | |
59 | QML_DECLARE_TYPE(QQuickDayOfWeekRow) |
60 | |
61 | #endif // QQUICKDAYOFWEEKROW_P_H |
62 |