Пример #1
0
	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)
Пример #2
0
 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)
Пример #3
0
    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()
Пример #4
0
 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()