eric6/WebBrowser/WebBrowserWindow.py

changeset 7771
787a6b3f8c9f
parent 7759
51aa6c6b66f7
child 7844
cb108454eda7
equal deleted inserted replaced
7770:49f3377aebf1 7771:787a6b3f8c9f
33 from E5Gui.E5Action import E5Action 33 from E5Gui.E5Action import E5Action
34 from E5Gui import E5MessageBox, E5FileDialog, E5ErrorMessage 34 from E5Gui import E5MessageBox, E5FileDialog, E5ErrorMessage
35 from E5Gui.E5MainWindow import E5MainWindow 35 from E5Gui.E5MainWindow import E5MainWindow
36 from E5Gui.E5Application import e5App 36 from E5Gui.E5Application import e5App
37 from E5Gui.E5ZoomWidget import E5ZoomWidget 37 from E5Gui.E5ZoomWidget import E5ZoomWidget
38 from E5Gui.E5OverrideCursor import E5OverrideCursor
38 39
39 from E5Network.E5NetworkIcon import E5NetworkIcon 40 from E5Network.E5NetworkIcon import E5NetworkIcon
40 41
41 import Preferences 42 import Preferences
42 from Preferences import Shortcuts 43 from Preferences import Shortcuts
3452 def __syncTOC(self): 3453 def __syncTOC(self):
3453 """ 3454 """
3454 Private slot to synchronize the TOC with the currently shown page. 3455 Private slot to synchronize the TOC with the currently shown page.
3455 """ 3456 """
3456 if WebBrowserWindow._useQtHelp: 3457 if WebBrowserWindow._useQtHelp:
3457 QApplication.setOverrideCursor(Qt.WaitCursor) 3458 with E5OverrideCursor():
3458 url = self.currentBrowser().source() 3459 url = self.currentBrowser().source()
3459 self.__showTocWindow() 3460 self.__showTocWindow()
3460 if not self.__tocWindow.syncToContent(url): 3461 if not self.__tocWindow.syncToContent(url):
3461 self.statusBar().showMessage( 3462 self.statusBar().showMessage(
3462 self.tr("Could not find an associated content."), 5000) 3463 self.tr("Could not find an associated content."), 5000)
3463 QApplication.restoreOverrideCursor()
3464 3464
3465 def __showTocWindow(self): 3465 def __showTocWindow(self):
3466 """ 3466 """
3467 Private method to show the table of contents window. 3467 Private method to show the table of contents window.
3468 """ 3468 """

eric ide

mercurial