개정판 d0db0878
issue #622: 저장 - save item to database -
Change-Id: I21e4a97aece0ea9e0b1432b8dae88bde1edfd1c1
DTI_PID/DTI_PID/SymbolTreeWidget.py | ||
---|---|---|
1 |
# coding: utf-8 |
|
2 |
""" This is Symbol Tree Widget module """ |
|
3 |
|
|
1 | 4 |
try: |
2 | 5 |
from PyQt5.QtCore import * |
3 | 6 |
from PyQt5.QtGui import * |
... | ... | |
151 | 154 |
try: |
152 | 155 |
symbolTypeList = AppDocData.instance().getSymbolTypeList() |
153 | 156 |
for symbolType in symbolTypeList: |
157 |
if not symbolType[1]: continue # skip if category is empty |
|
154 | 158 |
parent = QTreeWidgetItem(self, [symbolType[2]]) |
155 | 159 |
parent.setData(0, self.TREE_DATA_ROLE, symbolType) |
156 |
symbolList = AppDocData.instance().getSymbolListByType('type', symbolType[2])
|
|
160 |
symbolList = AppDocData.instance().getSymbolListByType('UID', symbolType[0])
|
|
157 | 161 |
for symbol in symbolList: |
158 | 162 |
symbolItem = QTreeWidgetItem(parent, [symbol.getName()]) |
159 | 163 |
symbolItem.setData(0, self.TREE_DATA_ROLE, symbol) |
내보내기 Unified diff