File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
python/plugins/processing/modeler Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -298,8 +298,6 @@ def __init__(self, model=None):
298
298
self .tabifyDockWidget (self .inputsDock , self .algorithmsDock )
299
299
self .inputsDock .raise_ ()
300
300
301
- self .zoom = 1
302
-
303
301
self .setWindowFlags (Qt .WindowMinimizeButtonHint |
304
302
Qt .WindowMaximizeButtonHint |
305
303
Qt .WindowCloseButtonHint )
@@ -314,6 +312,7 @@ def __init__(self, model=None):
314
312
self .view .setScene (self .scene )
315
313
self .view .setAcceptDrops (True )
316
314
self .view .ensureVisible (0 , 0 , 10 , 10 )
315
+ self .view .scale (QgsApplication .desktop ().logicalDpiX () / 96 , QgsApplication .desktop ().logicalDpiX () / 96 )
317
316
318
317
def _dragEnterEvent (event ):
319
318
if event .mimeData ().hasText () or event .mimeData ().hasFormat ('application/x-vnd.qgis.qgis.algorithmid' ):
@@ -549,6 +548,7 @@ def zoomOut(self):
549
548
def zoomActual (self ):
550
549
point = self .view .mapToScene (QPoint (self .view .viewport ().width () / 2 , self .view .viewport ().height () / 2 ))
551
550
self .view .resetTransform ()
551
+ self .view .scale (QgsApplication .desktop ().logicalDpiX () / 96 , QgsApplication .desktop ().logicalDpiX () / 96 )
552
552
self .view .centerOn (point )
553
553
554
554
def zoomToItems (self ):
You can’t perform that action at this time.
0 commit comments