Support sorting of test tree

Additionally preparation of filtering has been done.
This commit is contained in:
Christian Stenger
2014-11-11 17:30:34 +01:00
committed by Christian Stenger
parent 0357b0e98b
commit 9a644d1257
11 changed files with 341 additions and 80 deletions

View File

@@ -36,6 +36,23 @@ TestTreeItem::~TestTreeItem()
removeChildren();
}
TestTreeItem::TestTreeItem(const TestTreeItem &other)
: m_name(other.m_name),
m_filePath(other.m_filePath),
m_checked(other.m_checked),
m_type(other.m_type),
m_line(other.m_line),
m_column(other.m_column),
m_mainFile(other.m_mainFile),
m_parent(other.m_parent)
{
foreach (const TestTreeItem *child, other.m_children) {
TestTreeItem *reparentedChild = new TestTreeItem(*child);
reparentedChild->m_parent = this;
m_children.append(reparentedChild);
}
}
TestTreeItem *TestTreeItem::child(int row)
{
return m_children.at(row);