summaryrefslogtreecommitdiff
path: root/plugins/autotest/testtreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/autotest/testtreemodel.cpp')
-rw-r--r--plugins/autotest/testtreemodel.cpp11
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 **********************************/