개정판 d367d959
Zoom in 한 후 패닝이 안되는 문제 수정 / Zoom in 한 후 panning 하여 다른 곳을 참조할 때 zoom in 이 가능하도록 수정
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
157 | 157 |
@brief Fit Window |
158 | 158 |
@author Jeongwoo |
159 | 159 |
@date 2018.06.27 |
160 |
@history 2018.06.27 Jeongwoo Chnage method to initialize command [Set None → DefaultCommand] |
|
160 | 161 |
''' |
161 | 162 |
def fitWindow(self, action): |
162 |
self.graphicsView.command = None
|
|
163 |
self.graphicsView.useDefaultCommand()
|
|
163 | 164 |
self.graphicsView.zoomImageInit() |
164 | 165 | |
165 | 166 |
''' |
... | ... | |
186 | 187 |
@brief Manage Checkable Action statement |
187 | 188 |
@author Jeongwoo |
188 | 189 |
@date 2018.05.10 |
190 |
@history 2018.06.27 Jeongwoo Chnage method to initialize command [Set None → DefaultCommand] |
|
189 | 191 |
''' |
190 | 192 |
def actionGroupTriggered(self, action): |
191 | 193 |
if self.graphicsView.command is not None: |
192 |
self.graphicsView.command = None
|
|
194 |
self.graphicsView.useDefaultCommand()
|
|
193 | 195 |
if self.lastClickedCheckableAction is not None and self.lastClickedCheckableAction == action and action.isChecked(): |
194 | 196 |
action.setChecked(False) |
195 | 197 |
self.lastClickedCheckableAction = None |
내보내기 Unified diff