182 Method to retrieve the status of the canvas. |
182 Method to retrieve the status of the canvas. |
183 |
183 |
184 @return flag indicating a successful pixmap loading (boolean) |
184 @return flag indicating a successful pixmap loading (boolean) |
185 """ |
185 """ |
186 return self.status |
186 return self.status |
|
187 |
|
188 def wheelEvent(self, evt): |
|
189 """ |
|
190 Protected method to handle wheel events. |
|
191 |
|
192 @param evt reference to the wheel event (QWheelEvent) |
|
193 """ |
|
194 if evt.modifiers() & Qt.ControlModifier: |
|
195 if evt.delta()< 0: |
|
196 self.__zoomOut() |
|
197 else: |
|
198 self.__zoomIn() |
|
199 evt.accept() |
|
200 return |
|
201 |
|
202 super().wheelEvent(evt) |
187 |
203 |
188 ############################################################################ |
204 ############################################################################ |
189 ## Private menu handling methods below. |
205 ## Private menu handling methods below. |
190 ############################################################################ |
206 ############################################################################ |
191 |
207 |