aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates/qquickcalendarmodel_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates/qquickcalendarmodel_p.h')
-rw-r--r--src/quicktemplates/qquickcalendarmodel_p.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/quicktemplates/qquickcalendarmodel_p.h b/src/quicktemplates/qquickcalendarmodel_p.h
index e9dbf6d075..face2b29cf 100644
--- a/src/quicktemplates/qquickcalendarmodel_p.h
+++ b/src/quicktemplates/qquickcalendarmodel_p.h
@@ -39,14 +39,14 @@ public:
explicit QQuickCalendarModel(QObject *parent = nullptr);
QDate from() const;
- void setFrom(const QDate &from);
+ void setFrom(QDate from);
QDate to() const;
- void setTo(const QDate &to);
+ void setTo(QDate to);
Q_INVOKABLE int monthAt(int index) const;
Q_INVOKABLE int yearAt(int index) const;
- Q_INVOKABLE int indexOf(const QDate &date) const;
+ Q_INVOKABLE int indexOf(QDate date) const;
Q_INVOKABLE int indexOf(int year, int month) const;
enum {
@@ -74,6 +74,4 @@ private:
QT_END_NAMESPACE
-QML_DECLARE_TYPE(QQuickCalendarModel)
-
#endif // QQUICKCALENDARMODEL_P_H