개정판 42318ecb
issue #503: add just vendor item class
Change-Id: I3f80bc70007525b993637a7a8fe889c3490ab516
DTI_PID/DTI_PID/Commands/PlacePolygonCommand.py | ||
---|---|---|
64 | 64 |
finally: |
65 | 65 |
pass |
66 | 66 |
elif 'mouseReleaseEvent' == param[0] and event.button() == Qt.RightButton and self._polyline is not None: |
67 |
self._polyline._vertices.append(self._polyline._vertices[0]) |
|
68 |
self._polyline.update() |
|
69 | 67 |
self.onSuccess.emit() |
70 | 68 |
elif 'mouseReleaseEvent' == param[0] and event.button() == Qt.RightButton and self._polyline is None: |
71 | 69 |
self.onRejected.emit(self) |
... | ... | |
75 | 73 |
if event.key() == Qt.Key_Escape: |
76 | 74 |
self.onRejected.emit(self) |
77 | 75 |
self.isTreated = False |
78 |
elif event.key() == Qt.Key_A: # axis lock mode |
|
79 |
self._polyline.drawing_mode = QEngineeringPolylineItem.AXIS_MODE |
|
80 |
elif event.key() == Qt.Key_F: # free drawing mode |
|
81 |
self._polyline.drawing_mode = QEngineeringPolylineItem.FREE_MODE |
|
82 | 76 |
|
83 | 77 |
def undo(self): |
84 | 78 |
pass |
내보내기 Unified diff