def setZoom(self, zoom): """ Sets its own zoom factor and passes it to it's child widget if child is Zoomable. """ Zoomable.setZoom(self, zoom) if isinstance(self.widget(), ZoomableWidget): self.widget().setZoom(zoom) self.autosizeScrollWidget() self.emit(SIGNAL("zoomChanged(float)"), zoom)
def setZoom(self, zoom): """ Sets its own zoom factor and passes it to it's child widget if child is Zoomable. """ Zoomable.setZoom(self, zoom) if isinstance(self.widget(), ZoomableWidget): self.widget().setZoom(zoom) self.autosizeScrollWidget() self.emit(SIGNAL("zoomChanged(float)"), zoom)
def setZoom(self, zoom): """ Sets zoom of this widget and of it's children. """ Zoomable.setZoom(self, zoom) for child in self.children(): if isinstance(child, Zoomable): child.setZoom(zoom) self.update()
def setZoom(self, zoom): """ Sets zoom of this widget and of it's children. """ Zoomable.setZoom(self, zoom) for child in self.children(): if isinstance(child, Zoomable): child.setZoom(zoom) self.update()