개정판 1171931c
issue #641: fix line no tree
Change-Id: I1f7291a93cbd70088e2959756f8860ae19016a72
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1514 | 1514 |
if issubclass(type(run_item), SymbolSvgItem): |
1515 | 1515 |
self.init_add_tree_item(line_no_tree_item, run_item) |
1516 | 1516 |
|
1517 |
for trim_line_no in app_doc_data.tracerLineNos: |
|
1518 |
line_no_tree_item = self.itemTreeWidget.addTreeItem(self.itemTreeWidget.root, trim_line_no) |
|
1519 |
for run in trim_line_no.runs: |
|
1520 |
for run_item in run.items: |
|
1521 |
if issubclass(type(run_item), SymbolSvgItem): |
|
1522 |
self.init_add_tree_item(line_no_tree_item, run_item) |
|
1523 |
|
|
1517 | 1524 |
self.itemTreeWidget.update_item_count() |
1518 | 1525 |
self.itemTreeWidget.expandAll() |
1519 | 1526 |
"""up to here""" |
DTI_PID/DTI_PID/TextItemFactory.py | ||
---|---|---|
120 | 120 |
rgb = data.split(',') |
121 | 121 |
item.change_color(QColor(int(rgb[0]), int(rgb[1]), int(rgb[2])).name()) |
122 | 122 |
# up to here |
123 |
#docData.tracerLineNos.append(item)
|
|
123 |
docData.tracerLineNos.append(item) |
|
124 | 124 |
elif tagResult[0]: |
125 | 125 |
item = QEngineeringTagNoTextItem() |
126 | 126 |
item.setToolTip('TAG NO = {}'.format(text)) |
내보내기 Unified diff