eric6/ViewManager/ViewManager.py

changeset 7762
e77f58e5f663
parent 7759
51aa6c6b66f7
child 7775
4a1db75550bd
equal deleted inserted replaced
7761:ed2c67d20328 7762:e77f58e5f663
6079 else: 6079 else:
6080 aw = self.activeWindow() 6080 aw = self.activeWindow()
6081 if aw: 6081 if aw:
6082 aw.zoomOut() 6082 aw.zoomOut()
6083 self.sbZoom.setValue(aw.getZoom()) 6083 self.sbZoom.setValue(aw.getZoom())
6084 6084
6085 def __zoomReset(self): 6085 def __zoomReset(self):
6086 """ 6086 """
6087 Private method to reset the zoom factor. 6087 Private method to reset the zoom factor.
6088 """ 6088 """
6089 if QApplication.focusWidget() == e5App().getObject("Shell"): 6089 self.__zoomTo(0)
6090 e5App().getObject("Shell").zoomTo(0) 6090
6091 else:
6092 aw = self.activeWindow()
6093 if aw:
6094 aw.zoomTo(0)
6095 self.sbZoom.setValue(aw.getZoom())
6096
6097 def __zoom(self): 6091 def __zoom(self):
6098 """ 6092 """
6099 Private method to handle the zoom action. 6093 Private method to handle the zoom action.
6100 """ 6094 """
6101 if QApplication.focusWidget() == e5App().getObject("Shell"): 6095 if QApplication.focusWidget() == e5App().getObject("Shell"):

eric ide

mercurial