개정판 dd83a2f7
fix area settup
Change-Id: Ie45b393193960d7be9bc198e2d90b2c85597eb16
DTI_PID/DTI_PID/Shapes/EngineeringConnectorItem.py | ||
---|---|---|
300 | 300 | |
301 | 301 |
def mousePressEvent(self, event): |
302 | 302 |
from App import App |
303 |
import DefaultCommand |
|
303 |
import DefaultCommand, FenceCommand
|
|
304 | 304 | |
305 | 305 |
if self.parentItem() is not None: |
306 |
if event.buttons() == Qt.LeftButton and type(App.mainWnd().graphicsView.command) is DefaultCommand.DefaultCommand: |
|
306 |
if event.buttons() == Qt.LeftButton and type(App.mainWnd().graphicsView.command) is DefaultCommand.DefaultCommand or \ |
|
307 |
type(App.mainWnd().graphicsView.command) is FenceCommand.FenceCommand: |
|
307 | 308 |
self._pressed_position = QPointF(self.center()[0], self.center()[1]) |
308 | 309 |
self._savedConnectedItem = self.connectedItem |
309 | 310 |
내보내기 Unified diff