Refactoring

This commit is contained in:
Nikolaj Schlej 2016-07-16 09:08:41 +02:00
parent 4745d61905
commit f90427229d
2 changed files with 9 additions and 12 deletions

View file

@ -91,3 +91,10 @@ int TreeItem::row() const
}
return 0;
}
TreeItem* TreeItem::child(int row)
{
std::list<TreeItem*>::iterator child = childItems.begin();
std::advance(child, row);
return *child;
}