개정판 cf2c92c3
edit zoom mode
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
302 | 302 |
''' |
303 | 303 |
def onAreaZoom(self, action): |
304 | 304 |
if self.actionZoom.isChecked(): |
305 |
for item in self.graphicsView.items(): |
|
306 |
item.setFlags(QGraphicsItem.ItemIsFocusable) |
|
305 | 307 |
cmd = AreaZoomCommand.AreaZoomCommand(self.graphicsView) |
306 | 308 |
cmd.onRejected.connect(self.onCommandRejected) |
307 | 309 |
self.graphicsView.command = cmd |
310 |
else: |
|
311 |
for item in self.graphicsView.items(): |
|
312 |
item.setFlags(QGraphicsItem.ItemIsSelectable|QGraphicsItem.ItemIsFocusable) |
|
308 | 313 |
|
309 | 314 |
''' |
310 | 315 |
@brief Fit Window |
내보내기 Unified diff