Unverified Commit 101ae018 authored by Luca Beltrame's avatar Luca Beltrame
Browse files

Try (again!) to fix build

If this doesn't work, I'm disabling the examples directory entirely.
parent e8a29bbd
......@@ -57,13 +57,13 @@ void EntityTreeModelFactory::collectionsFetched(const Akonadi::Collection::List
if (!wantedRemoteId.isEmpty()) {
foreach (const Collection &col, list) {
if (col.remoteId() == wantedRemoteId) {
Monitor *changeRecorder = new Monitor(this);
changeRecorder->setCollectionMonitored(col, true);
changeRecorder->fetchCollection(true);
changeRecorder->setAllMonitored(true);
changeRecorder->itemFetchScope().fetchFullPayload();
Monitor *monitor = new Monitor(this);
monitor->setCollectionMonitored(col, true);
monitor->fetchCollection(true);
monitor->setAllMonitored(true);
monitor->itemFetchScope().fetchFullPayload();
EntityTreeModel *etm = getModel(changeRecorder, parent());
EntityTreeModel *etm = getModel(monitor, parent());
Q_EMIT modelCreated(etm);
return;
......@@ -73,8 +73,8 @@ void EntityTreeModelFactory::collectionsFetched(const Akonadi::Collection::List
}
}
EntityTreeModel *EntityTreeModelFactory::getModel(Monitor *changeRecorder, QObject *parent)
EntityTreeModel *EntityTreeModelFactory::getModel(Monitor *monitor, QObject *parent)
{
return new EntityTreeModel(changeRecorder, parent);
return new EntityTreeModel(monitor, parent);
}
......@@ -38,13 +38,13 @@ Q_SIGNALS:
void modelCreated(Akonadi::EntityTreeModel *model);
protected:
Akonadi::EntityTreeModel* getModel(Akonadi::Monitor* changeRecorder, QObject* parent);
Akonadi::EntityTreeModel* getModel(Akonadi::Monitor* monitor, QObject* parent);
private Q_SLOTS:
void collectionsFetched(const Akonadi::Collection::List &list);
private:
Akonadi::Monitor *m_changeRecorder;
Akonadi::Monitor *m_monitor;
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment