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 QQUICKCALENDAR_P_H |
5 | #define QQUICKCALENDAR_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 <QtCore/qobject.h> |
19 | #include <QtCore/qdatetime.h> |
20 | #include <QtQml/qqml.h> |
21 | #include <QtCore/private/qglobal_p.h> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | class QQuickCalendar : public QObject |
26 | { |
27 | Q_OBJECT |
28 | QML_NAMED_ELEMENT(Calendar) |
29 | QML_ADDED_IN_VERSION(6, 3) |
30 | |
31 | public: |
32 | explicit QQuickCalendar(QObject *parent = nullptr); |
33 | |
34 | enum Month { |
35 | January, |
36 | February, |
37 | March, |
38 | April, |
39 | May, |
40 | June, |
41 | July, |
42 | August, |
43 | September, |
44 | October, |
45 | November, |
46 | December |
47 | }; |
48 | Q_ENUM(Month) |
49 | }; |
50 | |
51 | QT_END_NAMESPACE |
52 | |
53 | QML_DECLARE_TYPE(QQuickCalendar) |
54 | |
55 | #endif // QQUICKCALENDAR_P_H |
56 | |