개정판 4680a45b
issue #477: 심볼 카테고리 트리 수정
Change-Id: Ic77634fcc0c8738cf0eb00982d23ab475a7d733a
DTI_PID/DTI_PID/SymbolEditorDialog.py | ||
---|---|---|
390 | 390 |
row = 0 |
391 | 391 |
for category in app_doc_data.getSymbolTypeComboBoxItems(): |
392 | 392 |
item = QStandardItem(category[2]) |
393 |
item.setEditable(False) |
|
393 | 394 |
item.setSelectable(False) |
394 | 395 |
|
395 | 396 |
for _type in app_doc_data.getBaseSymbolComboBoxItems(category[2]): |
396 | 397 |
child = QStandardItem(_type) |
398 |
child.setEditable(False) |
|
397 | 399 |
item.appendRow(child) |
398 | 400 |
|
399 | 401 |
model.setItem(row, 0, item) |
... | ... | |
637 | 639 |
proxy_model = self.ui.treeViewSymbolCategory.model() |
638 | 640 |
index = self.ui.treeViewSymbolCategory.currentIndex() |
639 | 641 |
item = proxy_model.sourceModel().itemFromIndex(proxy_model.mapToSource(index)) |
640 |
if item: |
|
642 |
if item and item.parent():
|
|
641 | 643 |
category = item.parent().text() |
642 | 644 |
self.FILE_NUMBER = 0 |
643 | 645 |
lastName = "" |
내보내기 Unified diff