self.collapseAll()
self.expandToDepth(0)
+ model = self.model()
+
def recursiveExpand(index):
parent = index.parent()
if parent and parent.isValid():
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)
- model = self.model()
root_rows = model.rowCount()
for r in range(root_rows):
index = model.index(r, 0)
class RSpecWindow(QDialog):
def __init__(self, parent=None):
QDialog.__init__(self, parent)
- self.setWindowTitle("RSPec View")
+ self.setWindowTitle("RSpec View")
self.document = None
self.model = None
class RSpecDelegate(QAbstractItemDelegate):
def __init__(self, parent=None):
- print "init-ing the delegate"
QAbstractItemDelegate.__init__(self, parent)
def paint(self, painter, option, index):