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
restore baris tree expansion feature. Removed >print< statements.
[sface.git]
/
sface
/
rspecwindow.py
diff --git
a/sface/rspecwindow.py
b/sface/rspecwindow.py
index
b6b8f0a
..
2abd5fd
100644
(file)
--- a/
sface/rspecwindow.py
+++ b/
sface/rspecwindow.py
@@
-27,7
+27,11
@@
class RSpecView(XmlView):
self.expand(index)
def search(index):
self.expand(index)
def search(index):
- if index.data().toString() == txt:
+ # voodoo alert: baris was using index.data()
+ # and apparently it worked. But after me
+ # messing around, only index.model().data(index)
+ # seems to give non-empty QVariant as output.
+ if index.model().data(index).toString() == txt:
recursiveExpand(index)
self.scrollTo(index, self.PositionAtCenter)
return
recursiveExpand(index)
self.scrollTo(index, self.PositionAtCenter)
return
@@
-58,7
+62,6
@@
class RSpecWindow(QDialog):
layout.addWidget(self.view)
self.setLayout(layout)
layout.addWidget(self.view)
self.setLayout(layout)
- print 'CHILDREN', str(self.children())
self.updateView()
def showNode(self, hostname):
self.updateView()
def showNode(self, hostname):