DaysModel: Make update a slot
update is invoked with QMetaMethod, so it must be a slot Reviewed-by: kbroulik
This commit is contained in:
parent
344d04e230
commit
aaa85f3f98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user