aboutsummaryrefslogtreecommitdiffstats
path: root/src/calendar/qquickcalendarview_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/calendar/qquickcalendarview_p.h')
-rw-r--r--src/calendar/qquickcalendarview_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/calendar/qquickcalendarview_p.h b/src/calendar/qquickcalendarview_p.h
index 5b26f8e6..23a582a1 100644
--- a/src/calendar/qquickcalendarview_p.h
+++ b/src/calendar/qquickcalendarview_p.h
@@ -53,6 +53,7 @@
QT_BEGIN_NAMESPACE
+class QQmlComponent;
class QQuickCalendarViewPrivate;
class Q_QUICKCALENDAR_EXPORT QQuickCalendarView : public QQuickControl
@@ -63,6 +64,7 @@ class Q_QUICKCALENDAR_EXPORT QQuickCalendarView : public QQuickControl
Q_PROPERTY(QLocale locale READ locale WRITE setLocale NOTIFY localeChanged FINAL)
Q_PROPERTY(QVariant source READ source WRITE setSource NOTIFY sourceChanged FINAL)
Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
+ Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
public:
explicit QQuickCalendarView(QQuickItem *parent = Q_NULLPTR);
@@ -82,12 +84,16 @@ public:
QString title() const;
void setTitle(const QString &title);
+ QQmlComponent *delegate() const;
+ void setDelegate(QQmlComponent *delegate);
+
Q_SIGNALS:
void monthChanged();
void yearChanged();
void localeChanged();
void sourceChanged();
void titleChanged();
+ void delegateChanged();
void pressed(const QDate &date);
void released(const QDate &date);