forked from qt-creator/qt-creator
AutoTest: Fix wrong copying of children
Change-Id: I1674ab75f7a019d4ea21ccc7449ba1f7b2c8e26f Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -76,7 +76,7 @@ TestTreeItem::TestTreeItem(const TestTreeItem &other)
|
|||||||
m_markedForRemoval(other.m_markedForRemoval)
|
m_markedForRemoval(other.m_markedForRemoval)
|
||||||
{
|
{
|
||||||
for (int row = 0, count = other.childCount(); row < count; ++row)
|
for (int row = 0, count = other.childCount(); row < count; ++row)
|
||||||
appendChild(new TestTreeItem(*childItem(row)));
|
appendChild(new TestTreeItem(*other.childItem(row)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static QIcon testTreeIcon(TestTreeItem::Type type)
|
static QIcon testTreeIcon(TestTreeItem::Type type)
|
||||||
|
|||||||
Reference in New Issue
Block a user