MCPcopy Index your code
hub / github.com/PyQt5/PyQt / scaleView

Method scaleView

QGraphicsView/WorldMap.py:122–127  ·  view source on GitHub ↗
(self, scaleFactor)

Source from the content-addressed store, hash-verified

120 super(GraphicsView, self).wheelEvent(event)
121
122 def scaleView(self, scaleFactor):
123 factor = self.transform().scale(
124 scaleFactor, scaleFactor).mapRect(QRectF(0, 0, 1, 1)).width()
125 if factor < 0.07 or factor > 100:
126 return
127 self.scale(scaleFactor, scaleFactor)
128
129 def initMap(self):
130 features = json.load(

Callers 1

wheelEventMethod · 0.95

Calls 1

widthMethod · 0.45

Tested by

no test coverage detected