diff options
author | Christian Stenger <christian.stenger@qt.io> | 2016-05-09 10:27:47 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2016-05-27 11:24:27 +0000 |
commit | ef2f37f6d54154deb8f6450dbe3d910ea45fb4ee (patch) | |
tree | 12e2f79715f6147e2cfef608f267c11ebfa2ec2d /src/plugins/autotest/testcodeparser.h | |
parent | e2f5183a845316e2e450381b0730275520e24a9c (diff) | |
download | qt-creator-ef2f37f6d54154deb8f6450dbe3d910ea45fb4ee.tar.gz |
AutoTest: Decouple item and model once more
Change-Id: I301f17dd8be7feb9dc61f483277a4835aea937af
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/autotest/testcodeparser.h')
-rw-r--r-- | src/plugins/autotest/testcodeparser.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/autotest/testcodeparser.h b/src/plugins/autotest/testcodeparser.h index a6646a33e3..e666a7eaf0 100644 --- a/src/plugins/autotest/testcodeparser.h +++ b/src/plugins/autotest/testcodeparser.h @@ -49,6 +49,8 @@ public: explicit TestParseResult(TestTreeModel::Type t = TestTreeModel::Invalid) : type(t) {} virtual ~TestParseResult() { qDeleteAll(children); } + virtual TestTreeItem *createTestTreeItem() const = 0; + QVector<TestParseResult *> children; TestTreeModel::Type type; TestTreeItem::Type itemType = TestTreeItem::Root; @@ -64,18 +66,21 @@ class QtTestParseResult : public TestParseResult { public: explicit QtTestParseResult() : TestParseResult(TestTreeModel::AutoTest) {} + TestTreeItem *createTestTreeItem() const override; }; class QuickTestParseResult : public TestParseResult { public: explicit QuickTestParseResult() : TestParseResult(TestTreeModel::QuickTest) {} + TestTreeItem *createTestTreeItem() const override; }; class GoogleTestParseResult : public TestParseResult { public: explicit GoogleTestParseResult() : TestParseResult(TestTreeModel::GoogleTest) {} + TestTreeItem *createTestTreeItem() const override; bool parameterized = false; bool typed = false; bool disabled = false; |