git://git.onelab.eu
/
sface.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a0f7de6
)
define model before nested functions
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Wed, 15 Sep 2010 20:14:22 +0000
(22:14 +0200)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Wed, 15 Sep 2010 20:14:22 +0000
(22:14 +0200)
sface/rspecwindow.py
patch
|
blob
|
history
diff --git
a/sface/rspecwindow.py
b/sface/rspecwindow.py
index
17bef6a
..
45c2508
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():
@@
-40,7
+42,6
@@
class RSpecView(QTreeView):
child_index = index.child(r, 0)
search(child_index)
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)