forked from qt-creator/qt-creator
Emit a signal when parsing is finished after updating source files.
Change-Id: I8a8878c420c0f8d24db16d606aace42519ac3047 Reviewed-on: http://codereview.qt.nokia.com/1151 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bill King <bill.king@nokia.com>
This commit is contained in:
committed by
Bill King
parent
59206106d3
commit
7e43490f99
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user