개정판 0e9273d4
issue #700: symbol edit block for user
Change-Id: I1d43991d9f975a5b6468561f1fcf438fe8ed750a
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1900 | 1900 |
if old_symbol: |
1901 | 1901 |
return |
1902 | 1902 |
elif event.key() == Qt.Key_X: |
1903 |
items = self.graphicsView.scene.selectedItems() |
|
1904 |
if items: |
|
1905 |
item = self.symbolTreeWidget.currentItem() |
|
1906 |
if item: |
|
1907 |
self.symbolTreeWidget.showSymbolEditorDialog(item, 0) |
|
1903 |
app_doc_data = AppDocData.instance() |
|
1904 |
configs = app_doc_data.getAppConfigs('app', 'mode') |
|
1905 |
if configs and 1 == len(configs) and 'advanced' == configs[0].value: |
|
1906 |
advanced = True |
|
1907 |
items = self.graphicsView.scene.selectedItems() |
|
1908 |
if items: |
|
1909 |
item = self.symbolTreeWidget.currentItem() |
|
1910 |
if item: |
|
1911 |
self.symbolTreeWidget.showSymbolEditorDialog(item, 0) |
|
1908 | 1912 |
|
1909 | 1913 |
QMainWindow.keyPressEvent(self, event) |
1910 | 1914 |
except Exception as ex: |
내보내기 Unified diff