AutoTest: Report parse results through QFutureInterface

Change-Id: Ib99e9ae5efa26f01dd9c0b0bf5516e2e9dab73ce
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-01-27 13:52:33 +01:00
parent fa3a35e346
commit 30b1e70c42
3 changed files with 129 additions and 132 deletions

View File

@@ -35,6 +35,7 @@
#include <QObject>
#include <QMap>
#include <QFutureWatcher>
namespace Core {
class Id;
@@ -74,11 +75,6 @@ signals:
public slots:
void emitUpdateTestTree();
void updateTestTree();
void checkDocumentForTestCode(CPlusPlus::Document::Ptr document,
const QString &referencingFile = QString());
void handleQtQuickTest(CPlusPlus::Document::Ptr document);
void handleGTest(const QString &filePath);
void onCppDocumentUpdated(const CPlusPlus::Document::Ptr &document);
void onQmlDocumentUpdated(const QmlJS::Document::Ptr &document);
void onStartupProjectChanged(ProjectExplorer::Project *);
@@ -102,6 +98,7 @@ private:
bool m_singleShotScheduled;
QSet<QString> m_postponedFiles;
State m_parserState;
QFutureWatcher<TestParseResult> m_futureWatcher;
};
} // namespace Internal