DaysModel: Make update a slot

update is invoked with QMetaMethod, so it must be a slot

Reviewed-by: kbroulik
This commit is contained in:
David Rosca 2016-03-10 16:21:41 +01:00
parent 344d04e230
commit aaa85f3f98

View File

@ -48,7 +48,6 @@ public:
void setSourceData(QList<DayData> *data);
int rowCount(const QModelIndex &parent) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
void update();
Q_INVOKABLE void setPluginsManager(QObject *manager);
@ -57,6 +56,9 @@ public:
Q_SIGNALS:
void agendaUpdated(const QDate &updatedDate);
public Q_SLOTS:
void update();
private Q_SLOTS:
void onDataReady(const QMultiHash<QDate, CalendarEvents::EventData> &data);
void onEventModified(const CalendarEvents::EventData &data);