Commit 7e43490f authored by Erik Verbruggen's avatar Erik Verbruggen Committed by Bill King

Emit a signal when parsing is finished after updating source files.

Change-Id: I8a8878c420c0f8d24db16d606aace42519ac3047
Reviewed-on: http://codereview.qt.nokia.com/1151Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarBill King <bill.king@nokia.com>
parent 59206106
......@@ -148,6 +148,7 @@ public:
Q_SIGNALS:
void documentUpdated(CPlusPlus::Document::Ptr doc);
void sourceFilesRefreshed(const QStringList &files);
public Q_SLOTS:
virtual void updateModifiedSourceFiles() = 0;
......
......@@ -1237,6 +1237,7 @@ void CppModelManager::parse(QFutureInterface<void> &future,
}
future.setProgressValue(files.size());
preproc->modelManager()->finishedRefreshingSourceFiles(files);
delete preproc;
}
......@@ -1443,5 +1444,10 @@ QList<LanguageUtils::FakeMetaObject::ConstPtr> CppModelManager::exportedQmlObjec
return exportedObjects;
}
void CppModelManager::finishedRefreshingSourceFiles(const QStringList &files)
{
emit sourceFilesRefreshed(files);
}
#endif
......@@ -130,6 +130,8 @@ public:
virtual QList<LanguageUtils::FakeMetaObject::ConstPtr> exportedQmlObjects(const CPlusPlus::Document::Ptr &doc) const;
void finishedRefreshingSourceFiles(const QStringList &files);
Q_SIGNALS:
void projectPathChanged(const QString &projectPath);
......@@ -254,6 +256,9 @@ public:
const QSet<QString> &todo() const
{ return m_todo; }
CppModelManager *modelManager() const
{ return m_modelManager.data(); }
public: // attributes
CPlusPlus::Snapshot snapshot;
......
Markdown is supported
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