mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[dbmanager] fix DeprecationWarning
This commit is contained in:
parent
a03e28bb5b
commit
a8cf02ad8d
@ -46,7 +46,7 @@ class LayerPreview(QgsMapCanvas):
|
||||
self.enableAntiAliasing(settings.value("/qgis/enable_anti_aliasing", False, type=bool))
|
||||
action = settings.value("/qgis/wheel_action", 0, type=float)
|
||||
zoomFactor = settings.value("/qgis/zoom_factor", 2, type=float)
|
||||
self.setWheelAction(QgsMapCanvas.WheelAction(action), zoomFactor)
|
||||
self.setWheelFactor(zoomFactor)
|
||||
|
||||
def refresh(self):
|
||||
self.setDirty(True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user