AutoTest: Unify handling of test tree items...

...and let specialized items handle its specialization by itself.

Change-Id: I988ce3c610bef68933b9102bb39ae4723add3a99
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-02-23 15:56:52 +01:00
parent 009eef4e0d
commit 36f6a5580f
10 changed files with 314 additions and 394 deletions

View File

@@ -81,7 +81,7 @@ public:
void markAllForRemoval();
void markForRemoval(const QString &filePath);
void sweep();
QMap<QString, QString> referencingFiles() const;
QMap<QString, QString> testCaseNamesForFiles(QStringList files);
signals:
void testTreeModelChanged();
@@ -104,9 +104,9 @@ private:
explicit TestTreeModel(QObject *parent = 0);
void setupParsingConnections();
TestTreeItem *m_autoTestRootItem;
TestTreeItem *m_quickTestRootItem;
TestTreeItem *m_googleTestRootItem;
AutoTestTreeItem *m_autoTestRootItem;
QuickTestTreeItem *m_quickTestRootItem;
GoogleTestTreeItem *m_googleTestRootItem;
TestCodeParser *m_parser;
bool m_connectionsInitialized;
QAtomicInt m_refCounter;
@@ -151,7 +151,7 @@ struct TestParseResult
TestTreeModel::Type type;
QString fileName;
QString referencingFile;
QString proFile;
QString testCaseName;
unsigned line = 0;
unsigned column = 0;