AutoTest: Move TestCodeParser and TestTreeModel ownership to plugin pimpl

Change-Id: I01b32aae894a4b419c8a067f604d5f04a2b14dfe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-03-16 12:59:23 +01:00
parent a596421ffc
commit 7158e67612
9 changed files with 63 additions and 61 deletions

View File

@@ -59,7 +59,8 @@ public:
Shutdown
};
explicit TestCodeParser(TestTreeModel *parent = nullptr);
TestCodeParser();
void setState(State state);
State state() const { return m_parserState; }
bool isParsing() const { return m_parserState == PartialParse || m_parserState == FullParse; }
@@ -76,6 +77,8 @@ signals:
void parsingStarted();
void parsingFinished();
void parsingFailed();
void requestRemoval(const QString &filePath);
void requestRemoveAll();
public:
void emitUpdateTestTree(ITestParser *parser = nullptr);
@@ -100,8 +103,6 @@ private:
void parsePostponedFiles();
void releaseParserInternals();
TestTreeModel *m_model;
bool m_codeModelParsing = false;
bool m_fullUpdatePostponed = false;
bool m_partialUpdatePostponed = false;