개정판 b6406480
ProjectDialog UI, 실행 구문 분리 및 사이즈 조절 가능하도록 수정 / QDirTreeWidget 우클릭 시 ContextMenu 출력 부분이 endWiths(.png) 인 부분 삭제
DTI_PID/DTI_PID/QDirTreeWidget.py | ||
---|---|---|
43 | 43 |
while index.parent().isValid(): |
44 | 44 |
index = index.parent() |
45 | 45 |
level += 1 |
46 |
if text.lower().endswith(".png"): |
|
47 |
menu = QMenu()
|
|
48 |
editSymbolAction = QAction(self.tr("Edit Symbol"))
|
|
49 |
editSymbolAction.triggered.connect(lambda: self.editSymbolActionClickEvent(item, 0))
|
|
50 |
menu.addAction(editSymbolAction)
|
|
51 |
displaySymbolAction = QAction(self.tr("Display Symbol"))
|
|
52 |
displaySymbolAction.triggered.connect(lambda: self.displaySymbolActionClickEvent(sym.getType(), text))
|
|
53 |
menu.addAction(displaySymbolAction)
|
|
54 |
deleteSymbolAction = QAction(self.tr("Delete Symbol"))
|
|
55 |
deleteSymbolAction.triggered.connect(lambda: self.deleteSymbolActionClickEvent(sym.getType(), text))
|
|
56 |
menu.addAction(deleteSymbolAction)
|
|
57 |
menu.exec_(self.viewport().mapToGlobal(position))
|
|
46 |
#if text.lower().endswith(".png"):
|
|
47 |
menu = QMenu() |
|
48 |
editSymbolAction = QAction(self.tr("Edit Symbol")) |
|
49 |
editSymbolAction.triggered.connect(lambda: self.editSymbolActionClickEvent(item, 0)) |
|
50 |
menu.addAction(editSymbolAction) |
|
51 |
displaySymbolAction = QAction(self.tr("Display Symbol")) |
|
52 |
displaySymbolAction.triggered.connect(lambda: self.displaySymbolActionClickEvent(sym.getType(), text)) |
|
53 |
menu.addAction(displaySymbolAction) |
|
54 |
deleteSymbolAction = QAction(self.tr("Delete Symbol")) |
|
55 |
deleteSymbolAction.triggered.connect(lambda: self.deleteSymbolActionClickEvent(sym.getType(), text)) |
|
56 |
menu.addAction(deleteSymbolAction) |
|
57 |
menu.exec_(self.viewport().mapToGlobal(position)) |
|
58 | 58 |
|
59 | 59 |
def editSymbolActionClickEvent(self, item, columNo): |
60 | 60 |
self.showSymbolEditorDialog(item, columNo) |
내보내기 Unified diff