AutoTest: Fix wrong copying of children

Change-Id: I1674ab75f7a019d4ea21ccc7449ba1f7b2c8e26f
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-01-29 12:50:32 +01:00
parent 7a331b8c94
commit fd4d1c801f

View File

@@ -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)