aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols/eventcalendar/eventmodel.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-07-26 14:05:51 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2023-07-28 10:29:01 +0200
commite2a79cf159dbaee7e9a6d9619965788ef3ed8920 (patch)
tree1df9d43ff9ea8f9274a8e4291db8ab343e77d5e0 /examples/quickcontrols/eventcalendar/eventmodel.h
parent5782728bb438fb513046682d3f75330ebd34c8f3 (diff)
Examples: pass QDate by value, not const reference
It's simply a wrapper round a qint64, no pimpl, nothing clever. Change-Id: I02997754dc4770180a7437edf3dc82b1505ad4da Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/quickcontrols/eventcalendar/eventmodel.h')
-rw-r--r--examples/quickcontrols/eventcalendar/eventmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quickcontrols/eventcalendar/eventmodel.h b/examples/quickcontrols/eventcalendar/eventmodel.h
index 3dc391fdd7..62a30df33b 100644
--- a/examples/quickcontrols/eventcalendar/eventmodel.h
+++ b/examples/quickcontrols/eventcalendar/eventmodel.h
@@ -34,7 +34,7 @@ public:
void setEventDatabase(SqlEventDatabase *eventDatabase);
QDate date() const;
- void setDate(const QDate &date);
+ void setDate(QDate date);
int rowCount(const QModelIndex & = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;