--- a/eric7/WebBrowser/QtHelp/QtHelpDocumentationDialog.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/WebBrowser/QtHelp/QtHelpDocumentationDialog.py Sat May 22 18:51:46 2021 +0200 @@ -16,8 +16,8 @@ ) from PyQt6.QtHelp import QHelpEngineCore -from E5Gui import E5MessageBox, E5FileDialog -from E5Gui.E5Application import e5App +from E5Gui import EricMessageBox, EricFileDialog +from E5Gui.EricApplication import ericApp from .Ui_QtHelpDocumentationDialog import Ui_QtHelpDocumentationDialog @@ -56,7 +56,7 @@ index != 1 and (self.__hasChangedFilters() or self.__removedAttributes) ): - yes = E5MessageBox.yesNo( + yes = EricMessageBox.yesNo( self, self.tr("Unsaved Filter Changes"), self.tr("""The page contains unsaved changes. Shall they be""" @@ -85,7 +85,7 @@ try: self.__pluginHelpDocuments = ( - e5App().getObject("PluginManager").getPluginQtHelpFiles() + ericApp().getObject("PluginManager").getPluginQtHelpFiles() ) except KeyError: from PluginManager.PluginManager import PluginManager @@ -108,7 +108,7 @@ """ Private slot to add QtHelp documents to the help database. """ - fileNames = E5FileDialog.getOpenFileNames( + fileNames = EricFileDialog.getOpenFileNames( self, self.tr("Add Documentation"), "", @@ -162,7 +162,7 @@ for fileName in fileNames: ns = QHelpEngineCore.namespaceName(fileName) if not ns: - E5MessageBox.warning( + EricMessageBox.warning( self, self.tr("Add Documentation"), self.tr( @@ -174,7 +174,7 @@ if len(self.documentsList.findItems( ns, Qt.MatchFlag.MatchFixedString )): - E5MessageBox.warning( + EricMessageBox.warning( self, self.tr("Add Documentation"), self.tr( @@ -196,7 +196,7 @@ """ Private slot to remove a document from the help database. """ - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( self, self.tr("Remove Documentation"), self.tr( @@ -211,7 +211,7 @@ for item in items: ns = item.text() if ns in list(openedDocs.values()): - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( self, self.tr("Remove Documentation"), self.tr( @@ -219,7 +219,7 @@ """documentation you are attempting to remove. """ """Removing the documentation will close those """ """documents. Remove anyway?"""), - icon=E5MessageBox.Warning) + icon=EricMessageBox.Warning) if not res: return self.__unregisteredDocs.append(ns) @@ -407,7 +407,7 @@ """ Private slot to remove the selected filters. """ - ok = E5MessageBox.yesNo( + ok = EricMessageBox.yesNo( self, self.tr("Remove Filters"), self.tr( @@ -435,7 +435,7 @@ """ Private slot to remove the selected filter attributes. """ - ok = E5MessageBox.yesNo( + ok = EricMessageBox.yesNo( self, self.tr("Remove Attributes"), self.tr(