eric6/E5Gui/E5MapWidget.py

changeset 7252
c5e3705073eb
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7251:bc5b1b00560a 7252:c5e3705073eb
247 Protected slot handling mouse wheel events. 247 Protected slot handling mouse wheel events.
248 248
249 @param event reference to the wheel event (QWheelEvent) 249 @param event reference to the wheel event (QWheelEvent)
250 """ 250 """
251 isVertical = event.angleDelta().x() == 0 251 isVertical = event.angleDelta().x() == 0
252 if self._master and \ 252 if (
253 event.modifiers() == Qt.NoModifier and \ 253 self._master and
254 isVertical: 254 event.modifiers() == Qt.NoModifier and
255 isVertical
256 ):
255 QCoreApplication.sendEvent(self._master.verticalScrollBar(), event) 257 QCoreApplication.sendEvent(self._master.verticalScrollBar(), event)
256 258
257 def calculateGeometry(self): 259 def calculateGeometry(self):
258 """ 260 """
259 Public method to recalculate the map widget's geometry. 261 Public method to recalculate the map widget's geometry.

eric ide

mercurial