Commit 30b1e70c authored by Christian Stenger's avatar Christian Stenger

AutoTest: Report parse results through QFutureInterface

Change-Id: Ib99e9ae5efa26f01dd9c0b0bf5516e2e9dab73ce
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent fa3a35e3
This diff is collapsed.
......@@ -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
......
......@@ -145,6 +145,13 @@ private:
};
struct TestParseResult
{
TestParseResult(TestTreeItem *it, TestTreeModel::Type t) : item(it), type(t) {}
TestTreeItem *item;
TestTreeModel::Type type;
};
} // namespace Internal
} // namespace Autotest
......
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