Skip to content
Snippets Groups Projects
Commit 7e43490f authored by Erik Verbruggen's avatar Erik Verbruggen Committed by Bill King
Browse files

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

Change-Id: I8a8878c420c0f8d24db16d606aace42519ac3047
Reviewed-on: http://codereview.qt.nokia.com/1151


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarBill King <bill.king@nokia.com>
parent 59206106
No related branches found
No related tags found
No related merge requests found
...@@ -148,6 +148,7 @@ public: ...@@ -148,6 +148,7 @@ public:
Q_SIGNALS: Q_SIGNALS:
void documentUpdated(CPlusPlus::Document::Ptr doc); void documentUpdated(CPlusPlus::Document::Ptr doc);
void sourceFilesRefreshed(const QStringList &files);
public Q_SLOTS: public Q_SLOTS:
virtual void updateModifiedSourceFiles() = 0; virtual void updateModifiedSourceFiles() = 0;
......
...@@ -1237,6 +1237,7 @@ void CppModelManager::parse(QFutureInterface<void> &future, ...@@ -1237,6 +1237,7 @@ void CppModelManager::parse(QFutureInterface<void> &future,
} }
future.setProgressValue(files.size()); future.setProgressValue(files.size());
preproc->modelManager()->finishedRefreshingSourceFiles(files);
delete preproc; delete preproc;
} }
...@@ -1443,5 +1444,10 @@ QList<LanguageUtils::FakeMetaObject::ConstPtr> CppModelManager::exportedQmlObjec ...@@ -1443,5 +1444,10 @@ QList<LanguageUtils::FakeMetaObject::ConstPtr> CppModelManager::exportedQmlObjec
return exportedObjects; return exportedObjects;
} }
void CppModelManager::finishedRefreshingSourceFiles(const QStringList &files)
{
emit sourceFilesRefreshed(files);
}
#endif #endif
...@@ -130,6 +130,8 @@ public: ...@@ -130,6 +130,8 @@ public:
virtual QList<LanguageUtils::FakeMetaObject::ConstPtr> exportedQmlObjects(const CPlusPlus::Document::Ptr &doc) const; virtual QList<LanguageUtils::FakeMetaObject::ConstPtr> exportedQmlObjects(const CPlusPlus::Document::Ptr &doc) const;
void finishedRefreshingSourceFiles(const QStringList &files);
Q_SIGNALS: Q_SIGNALS:
void projectPathChanged(const QString &projectPath); void projectPathChanged(const QString &projectPath);
...@@ -254,6 +256,9 @@ public: ...@@ -254,6 +256,9 @@ public:
const QSet<QString> &todo() const const QSet<QString> &todo() const
{ return m_todo; } { return m_todo; }
CppModelManager *modelManager() const
{ return m_modelManager.data(); }
public: // attributes public: // attributes
CPlusPlus::Snapshot snapshot; CPlusPlus::Snapshot snapshot;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment