summaryrefslogtreecommitdiff
path: root/portato/gui/qt/tree.py
diff options
context:
space:
mode:
authornecoro <>2007-04-18 18:05:53 +0000
committernecoro <>2007-04-18 18:05:53 +0000
commit188343e825e9c5bfbc08e4132845371b787fb81e (patch)
tree8ba43e763a21d3b9f3d742b8b3a1ca5af822ef7f /portato/gui/qt/tree.py
parent299ae3c9b6c7356217223b919440e42d50233695 (diff)
downloadportato-188343e825e9c5bfbc08e4132845371b787fb81e.tar.gz
portato-188343e825e9c5bfbc08e4132845371b787fb81e.tar.bz2
portato-188343e825e9c5bfbc08e4132845371b787fb81e.zip
finished Qt-Frontend
Diffstat (limited to 'portato/gui/qt/tree.py')
-rw-r--r--portato/gui/qt/tree.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/portato/gui/qt/tree.py b/portato/gui/qt/tree.py
index a8c3e66..6e9950f 100644
--- a/portato/gui/qt/tree.py
+++ b/portato/gui/qt/tree.py
@@ -70,7 +70,12 @@ class QtTree (Tree):
def next_iter (self, it):
iter = Qt.QTreeWidgetItemIterator(it)
iter += 1 # next iter ...
- return iter.value()
+
+ newIt = iter.value()
+ if newIt.parent() != it.parent(): # stop if we left the current parent
+ return None
+ else:
+ return newIt
def get_value (self, it, column):
return str(it.text(column))