diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-11-02 11:06:19 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-11-13 11:32:23 +0000 |
commit | 28fc8c02b36875dae31c1baa5d77a6d4b08fd0c1 (patch) | |
tree | 7610b138203d8014c93f39a15e7790a277bd3edc /plugins/autotest/testtreemodel.cpp | |
parent | 1b97b5e4d3757e5e5ca85032c133009dea9de945 (diff) |
Add plugin unit test for data tagsat-v3.6.0-rc1
Change-Id: I765989cd18c3aff0b8bbc81e4e303e9354e327b7
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Diffstat (limited to 'plugins/autotest/testtreemodel.cpp')
-rw-r--r-- | plugins/autotest/testtreemodel.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/autotest/testtreemodel.cpp b/plugins/autotest/testtreemodel.cpp index c59d69a745..7271ccfd17 100644 --- a/plugins/autotest/testtreemodel.cpp +++ b/plugins/autotest/testtreemodel.cpp @@ -670,6 +670,17 @@ int TestTreeModel::unnamedQuickTestsCount() const return unnamed->childCount(); return 0; } + +int TestTreeModel::dataTagsCount() const +{ + int dataTagCount = 0; + foreach (Utils::TreeItem *item, m_autoTestRootItem->children()) { + TestTreeItem *classItem = static_cast<TestTreeItem *>(item); + foreach (Utils::TreeItem *functionItem, classItem->children()) + dataTagCount += functionItem->childCount(); + } + return dataTagCount; +} #endif /***************************** Sort/Filter Model **********************************/ |