aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/testtreeitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/autotest/testtreeitem.cpp')
-rw-r--r--src/plugins/autotest/testtreeitem.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/autotest/testtreeitem.cpp b/src/plugins/autotest/testtreeitem.cpp
index fee361e25e..5debb983d6 100644
--- a/src/plugins/autotest/testtreeitem.cpp
+++ b/src/plugins/autotest/testtreeitem.cpp
@@ -38,8 +38,10 @@
namespace Autotest {
-TestTreeItem::TestTreeItem(const QString &name, const QString &filePath, Type type)
- : m_name(name),
+TestTreeItem::TestTreeItem(ITestFramework *framework, const QString &name,
+ const QString &filePath, Type type)
+ : m_framework(framework),
+ m_name(name),
m_filePath(filePath),
m_type(type)
{
@@ -355,6 +357,11 @@ inline bool TestTreeItem::modifyName(const QString &name)
return false;
}
+ITestFramework *TestTreeItem::framework() const
+{
+ return m_framework;
+}
+
/*
* try to find build system target that depends on the given file - if the file is no header
* try to find the corresponding header and use this instead to find the respective target