diff options
author | hjk <[email protected]> | 2016-06-24 09:36:42 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2016-07-27 08:00:40 +0000 |
commit | 53415cece15ae11e4176320b4e8bd604424214f0 (patch) | |
tree | 89f4a22de2755e731f5a67edde028e28c59e9df5 /src/plugins/autotest | |
parent | 245965223450e6936d9a6b250bff777e633bbcc6 (diff) |
Utils: Streamline TreeModel API
The LeveledTreeModel case is general enough to cover
the UniformTreeModel case, so merge them and rename to
TreeModel. The former TreeModel is now BaseTreeModel.
BaseTreeModels should not be instantiated directly,
a tree model with non-uniform basic items is available
as TreeModel<>.
Done-with: Eike Ziller <[email protected]>
Change-Id: I64a65617ab68c0cde39cf65f4bc092ef808ee6fb
Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r-- | src/plugins/autotest/testresultmodel.cpp | 2 | ||||
-rw-r--r-- | src/plugins/autotest/testresultmodel.h | 2 | ||||
-rw-r--r-- | src/plugins/autotest/testtreemodel.cpp | 2 | ||||
-rw-r--r-- | src/plugins/autotest/testtreemodel.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/autotest/testresultmodel.cpp b/src/plugins/autotest/testresultmodel.cpp index 907951ed24d..f5abf8ff115 100644 --- a/src/plugins/autotest/testresultmodel.cpp +++ b/src/plugins/autotest/testresultmodel.cpp @@ -128,7 +128,7 @@ void TestResultItem::updateResult() /********************************* TestResultModel *****************************************/ TestResultModel::TestResultModel(QObject *parent) - : Utils::TreeModel(parent), + : Utils::TreeModel<>(parent), m_widthOfLineNumber(0), m_maxWidthOfFileName(0), m_disabled(0) diff --git a/src/plugins/autotest/testresultmodel.h b/src/plugins/autotest/testresultmodel.h index ee933bd0b6e..b9853c97c06 100644 --- a/src/plugins/autotest/testresultmodel.h +++ b/src/plugins/autotest/testresultmodel.h @@ -51,7 +51,7 @@ private: TestResultPtr m_testResult; }; -class TestResultModel : public Utils::TreeModel +class TestResultModel : public Utils::TreeModel<> { public: explicit TestResultModel(QObject *parent = 0); diff --git a/src/plugins/autotest/testtreemodel.cpp b/src/plugins/autotest/testtreemodel.cpp index 706f1331ce8..6bf92e58afe 100644 --- a/src/plugins/autotest/testtreemodel.cpp +++ b/src/plugins/autotest/testtreemodel.cpp @@ -42,7 +42,7 @@ namespace Autotest { namespace Internal { TestTreeModel::TestTreeModel(QObject *parent) : - TreeModel(parent), + TreeModel<>(parent), m_parser(new TestCodeParser(this)), m_connectionsInitialized(false) { diff --git a/src/plugins/autotest/testtreemodel.h b/src/plugins/autotest/testtreemodel.h index 71291019375..c57be8a4738 100644 --- a/src/plugins/autotest/testtreemodel.h +++ b/src/plugins/autotest/testtreemodel.h @@ -40,7 +40,7 @@ class TestParseResult; using TestParseResultPtr = QSharedPointer<TestParseResult>; -class TestTreeModel : public Utils::TreeModel +class TestTreeModel : public Utils::TreeModel<> { Q_OBJECT public: |