summaryrefslogtreecommitdiff
path: root/plugins/autotest/testtreemodel.h
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2015-02-12 15:48:24 +0100
committerChristian Stenger <christian.stenger@theqtcompany.com>2015-02-17 10:26:39 +0200
commit223b43e9e0d978e1c6c2afc5002489eef09ec9e4 (patch)
tree285ee20daaaae9f17c3e8f561c0ea092e4d15c41 /plugins/autotest/testtreemodel.h
parent213a687f454682b8cd1e79fc27762ac6f374502e (diff)
downloadqt-creator-223b43e9e0d978e1c6c2afc5002489eef09ec9e4.tar.gz
Enable and disable parser on demand
The new approach enables the parser as soon the Tests navigation widget or the Tests results pane is visible. If none is displayed parsing will be disabled. This additionally fixes an issue of not parsing a project when having a project opened already before triggering the first Tests navigation widget to become visible. Change-Id: I7163268d405e07e85814097d65ff34790a98a3d1 Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
Diffstat (limited to 'plugins/autotest/testtreemodel.h')
-rw-r--r--plugins/autotest/testtreemodel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/autotest/testtreemodel.h b/plugins/autotest/testtreemodel.h
index b21eafbb7f..46a7b28a95 100644
--- a/plugins/autotest/testtreemodel.h
+++ b/plugins/autotest/testtreemodel.h
@@ -53,6 +53,8 @@ public:
static TestTreeModel* instance();
~TestTreeModel();
+ void enableParsing();
+ void disableParsing();
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
QModelIndex parent(const QModelIndex &index) const;
@@ -109,6 +111,8 @@ private:
TestTreeItem *m_autoTestRootItem;
TestTreeItem *m_quickTestRootItem;
TestCodeParser *m_parser;
+ bool m_connectionsInitialized;
+ int m_initializationCounter;
};