git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't continue on search when found (practically, this doesn't have an affect as...
[sface.git]
/
sface
/
rspecwindow.py
diff --git
a/sface/rspecwindow.py
b/sface/rspecwindow.py
index
17bef6a
..
4db87c6
100644
(file)
--- a/
sface/rspecwindow.py
+++ b/
sface/rspecwindow.py
@@
-24,6
+24,8
@@
class RSpecView(QTreeView):
self.collapseAll()
self.expandToDepth(0)
self.collapseAll()
self.expandToDepth(0)
+ model = self.model()
+
def recursiveExpand(index):
parent = index.parent()
if parent and parent.isValid():
def recursiveExpand(index):
parent = index.parent()
if parent and parent.isValid():
@@
-34,13
+36,13
@@
class RSpecView(QTreeView):
if index.data().toString() == txt:
recursiveExpand(index)
self.scrollTo(index, self.PositionAtCenter)
if index.data().toString() == txt:
recursiveExpand(index)
self.scrollTo(index, self.PositionAtCenter)
+ return
rows = model.rowCount(index)
for r in range(rows):
child_index = index.child(r, 0)
search(child_index)
rows = model.rowCount(index)
for r in range(rows):
child_index = index.child(r, 0)
search(child_index)
- model = self.model()
root_rows = model.rowCount()
for r in range(root_rows):
index = model.index(r, 0)
root_rows = model.rowCount()
for r in range(root_rows):
index = model.index(r, 0)