개정판 78ca21fd
issue #643: add text remove
Change-Id: I04e498a2ee40360c792da64fe1436a76be0d89e0
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py | ||
---|---|---|
167 | 167 |
''' |
168 | 168 | |
169 | 169 |
def keyPressEvent(self, event): |
170 |
if self.isSelected() and event.key() == Qt.Key_Delete: |
|
171 |
self.deleteTextItemFromScene() |
|
172 |
elif event.key() == Qt.Key_R: |
|
170 |
if event.key() == Qt.Key_R: |
|
173 | 171 |
# degree 0 |
174 | 172 |
if 0 == self.angle: |
175 | 173 |
self.angle = 1.57 |
... | ... | |
257 | 255 |
''' |
258 | 256 | |
259 | 257 |
def deleteTextItemFromScene(self): |
258 |
''' not used ''' |
|
260 | 259 |
# self.transfer.onRemoved.emit(self) |
261 | 260 |
self.scene().removeItem(self) |
262 | 261 |
내보내기 Unified diff