forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user