WebBrowser/WebBrowserWindow.py

changeset 6148
6c7af1e85e49
parent 6142
304a469455c8
child 6151
29564aad2f97
equal deleted inserted replaced
6147:0ea1f1e72463 6148:6c7af1e85e49
3514 dlg = QtHelpDocumentationDialog(self.__helpEngine, self) 3514 dlg = QtHelpDocumentationDialog(self.__helpEngine, self)
3515 dlg.exec_() 3515 dlg.exec_()
3516 if dlg.hasChanges(): 3516 if dlg.hasChanges():
3517 for i in sorted(dlg.getTabsToClose(), reverse=True): 3517 for i in sorted(dlg.getTabsToClose(), reverse=True):
3518 self.__tabWidget.closeBrowserAt(i) 3518 self.__tabWidget.closeBrowserAt(i)
3519 self.__helpEngine.setupData()
3520 3519
3521 def getSourceFileList(self): 3520 def getSourceFileList(self):
3522 """ 3521 """
3523 Public method to get a list of all opened source files. 3522 Public method to get a list of all opened source files.
3524 3523
3639 3638
3640 @param installed flag indicating that documents were installed 3639 @param installed flag indicating that documents were installed
3641 (boolean) 3640 (boolean)
3642 """ 3641 """
3643 if WebBrowserWindow._useQtHelp: 3642 if WebBrowserWindow._useQtHelp:
3644 if installed:
3645 self.__helpEngine.setupData()
3646 self.statusBar().clearMessage() 3643 self.statusBar().clearMessage()
3647 3644
3648 def __initHelpDb(self): 3645 def __initHelpDb(self):
3649 """ 3646 """
3650 Private slot to initialize the documentation database. 3647 Private slot to initialize the documentation database.
3651 """ 3648 """
3652 if WebBrowserWindow._useQtHelp: 3649 if WebBrowserWindow._useQtHelp:
3653 if not self.__helpEngine.setupData():
3654 return
3655
3656 unfiltered = self.tr("Unfiltered") 3650 unfiltered = self.tr("Unfiltered")
3657 if unfiltered not in self.__helpEngine.customFilters(): 3651 if unfiltered not in self.__helpEngine.customFilters():
3658 hc = QHelpEngineCore(self.__helpEngine.collectionFile()) 3652 hc = QHelpEngineCore(self.__helpEngine.collectionFile())
3659 hc.setupData()
3660 hc.addCustomFilter(unfiltered, []) 3653 hc.addCustomFilter(unfiltered, [])
3661 hc = None 3654 hc = None
3662 del hc 3655 del hc
3663 3656
3664 self.__helpEngine.blockSignals(True) 3657 self.__helpEngine.blockSignals(True)
3665 self.__helpEngine.setCurrentFilter(unfiltered) 3658 self.__helpEngine.setCurrentFilter(unfiltered)
3666 self.__helpEngine.blockSignals(False) 3659 self.__helpEngine.blockSignals(False)
3667 self.__helpEngine.setupData()
3668 3660
3669 def __warning(self, msg): 3661 def __warning(self, msg):
3670 """ 3662 """
3671 Private slot handling warnings from the help engine. 3663 Private slot handling warnings from the help engine.
3672 3664

eric ide

mercurial