mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04: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))
|
self.enableAntiAliasing(settings.value("/qgis/enable_anti_aliasing", False, type=bool))
|
||||||
action = settings.value("/qgis/wheel_action", 0, type=float)
|
action = settings.value("/qgis/wheel_action", 0, type=float)
|
||||||
zoomFactor = settings.value("/qgis/zoom_factor", 2, type=float)
|
zoomFactor = settings.value("/qgis/zoom_factor", 2, type=float)
|
||||||
self.setWheelAction(QgsMapCanvas.WheelAction(action), zoomFactor)
|
self.setWheelFactor(zoomFactor)
|
||||||
|
|
||||||
def refresh(self):
|
def refresh(self):
|
||||||
self.setDirty(True)
|
self.setDirty(True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user