forked from qt-creator/qt-creator
Autotest: Keep track of generating framework in TestTreeItem
... and TestConfiguration. This allows dropping code that reconstruct framework ids and framework lookup by id. Change-Id: I0bb1e6e135376e21f96b9fab7971aa097787e483 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user