Skip to content
Snippets Groups Projects
Commit aca3ccec authored by Max Kahnt's avatar Max Kahnt Committed by maxka
Browse files

bin: Fix hierarchicviewer for level increase > 1.

No more blank linkes should be needed for (debug)
output to be correctly parsed by the hier.viewer.

[[Imported from SVN: r8818]]
parent 3495e9a5
No related branches found
No related tags found
No related merge requests found
...@@ -44,15 +44,21 @@ class MyItemModel(Qt.QStandardItemModel): ...@@ -44,15 +44,21 @@ class MyItemModel(Qt.QStandardItemModel):
self.parentItem.appendRow(thisItem) self.parentItem.appendRow(thisItem)
self.lastItemLevel = thisItemLevel self.lastItemLevel = thisItemLevel
if (levelDiff < 0): if (levelDiff < 0):
if (levelDiff < -1): if (levelDiff < -1):
print "ERROR: BAD POSITIVE LEVEL DIFFERENCE" for _ in itertools.repeat(None, -levelDiff-1):
dummyItem = Qt.QStandardItem(item[0].rstrip() + '-Dummy')
self.lastItem.appendRow(dummyItem)
self.lastItem = dummyItem
self.lastItem.appendRow(thisItem) self.lastItem.appendRow(thisItem)
self.lastItemLevel = thisItemLevel self.lastItemLevel = thisItemLevel
self.lastItem = thisItem self.lastItem = thisItem
#def saveModel(self, file): TODO
#def saveItem(self, file, item): TODO
class MainWindow(Qt.QMainWindow): class MainWindow(Qt.QMainWindow):
#def __init__(self, app, hit, timeout, autoAppend, follow, *args): #def __init__(self, app, hit, timeout, autoAppend, follow, *args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment