개정판 c2909d3d
issue #655: add up down arrow
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1315 | 1315 |
def createDetectedItems(self, symbolList, textInfoList, otherTextInfoList, titleBlockTextInfoList): |
1316 | 1316 |
try: |
1317 | 1317 |
appDocData = AppDocData.instance() |
1318 |
appDocData.deleteDataListBeforeSave() |
|
1318 |
#appDocData.deleteDataListBeforeSave()
|
|
1319 | 1319 |
|
1320 | 1320 |
QApplication.processEvents() |
1321 | 1321 |
self.createDetectedSymbolItem(symbolList) |
DTI_PID/DTI_PID/TrainingEditorDialog.py | ||
---|---|---|
325 | 325 |
if closestItem is not None: |
326 | 326 |
closestItem.setSelected(True) |
327 | 327 |
selectedItem.setSelected(False) |
328 |
closestItem.mousePressEvent('arrow key') |
|
329 |
|
|
328 |
closestItem.mousePressEvent('arrow key') |
|
330 | 329 |
elif event.key() == Qt.Key_Right: |
331 | 330 |
dx = -sys.maxsize |
332 | 331 |
for item in self.graphicsViewTrainingDrawing.scene.items(): |
... | ... | |
338 | 337 |
closestItem.setSelected(True) |
339 | 338 |
selectedItem.setSelected(False) |
340 | 339 |
closestItem.mousePressEvent('arrow key') |
340 |
elif event.key() == Qt.Key_Up: |
|
341 |
self.ui.spinBoxWidth.setValue(self.ui.spinBoxWidth.value() + 1) |
|
342 |
elif event.key() == Qt.Key_Down: |
|
343 |
self.ui.spinBoxWidth.setValue(self.ui.spinBoxWidth.value() - 1) |
|
341 | 344 |
elif event.key() == Qt.Key_Return: |
342 | 345 |
pass |
343 | 346 |
elif selectedItem: |
내보내기 Unified diff