AutoTest: Fix enabling run buttons

If a parsing for tests is in progress the buttons might get enabled
but they should be disabled until the parsing has finished.

Change-Id: I3f089626983c219a9b54d8fc057a7ff51f11dc8c
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-03-14 15:36:03 +01:00
parent 7e03cbd8a0
commit 507a7e89eb
2 changed files with 4 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ public:
virtual ~TestCodeParser();
void setState(State state);
State state() const { return m_parserState; }
bool isParsing() const { return m_parserState == PartialParse || m_parserState == FullParse; }
void setDirty() { m_dirty = true; }
#ifdef WITH_TESTS
bool furtherParsingExpected() const