Commit c97f20f0 authored by Jan Möbius's avatar Jan Möbius
Browse files

Minor fixes

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15151 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9581613d
......@@ -190,7 +190,7 @@ TreeItem* TreeItem::next() {
// If there is an unvisited child of the parent, return this one
const int position = (thisPointer->row() + 1);
if ( parentPointer->childCount() > ( position ) ) {
if ( parentPointer->childCount() > position ) {
return parentPointer->childItems_[ position ];
}
......
......@@ -116,6 +116,9 @@ class TreeItem {
/// Children of this node
QList<TreeItem*> childItems_;
/// Cache all children of this item to get their row efficiently
QMap<TreeItem*,int> childMap_;
/// Acceleration map
static QMap<int,TreeItem*> treeMap_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment