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"): |