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