--- a/eric7/SqlBrowser/SqlBrowser.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/SqlBrowser/SqlBrowser.py Sat May 22 18:51:46 2021 +0200 @@ -11,10 +11,10 @@ from PyQt6.QtGui import QKeySequence from PyQt6.QtSql import QSqlError, QSqlDatabase -from E5Gui.E5Action import E5Action -from E5Gui import E5MessageBox -from E5Gui.E5MainWindow import E5MainWindow -from E5Gui.E5Application import e5App +from E5Gui.EricAction import EricAction +from E5Gui import EricMessageBox +from E5Gui.EricMainWindow import EricMainWindow +from E5Gui.EricApplication import ericApp import UI.PixmapCache import UI.Config @@ -22,7 +22,7 @@ import Preferences -class SqlBrowser(E5MainWindow): +class SqlBrowser(EricMainWindow): """ Class implementing the SQL Browser main window. """ @@ -83,7 +83,7 @@ loop is up. """ for warning in self.__warnings: - E5MessageBox.warning( + EricMessageBox.warning( self, self.tr("SQL Browser startup problem"), warning) @@ -98,7 +98,7 @@ # list of all actions self.__actions = [] - self.addConnectionAct = E5Action( + self.addConnectionAct = EricAction( self.tr('Add Connection'), UI.PixmapCache.getIcon("databaseConnection"), self.tr('Add &Connection...'), @@ -114,7 +114,7 @@ self.__browser.addConnectionByDialog) self.__actions.append(self.addConnectionAct) - self.exitAct = E5Action( + self.exitAct = EricAction( self.tr('Quit'), UI.PixmapCache.getIcon("exit"), self.tr('&Quit'), @@ -125,9 +125,9 @@ """<b>Quit</b>""" """<p>Quit the SQL browser.</p>""" )) - self.exitAct.triggered.connect(e5App().closeAllWindows) + self.exitAct.triggered.connect(ericApp().closeAllWindows) - self.aboutAct = E5Action( + self.aboutAct = EricAction( self.tr('About'), self.tr('&About'), 0, 0, self, 'sql_help_about') @@ -140,7 +140,7 @@ self.aboutAct.triggered.connect(self.__about) self.__actions.append(self.aboutAct) - self.aboutQtAct = E5Action( + self.aboutQtAct = EricAction( self.tr('About Qt'), self.tr('About &Qt'), 0, 0, self, 'sql_help_about_qt') @@ -187,7 +187,7 @@ """ Private slot to show the about information. """ - E5MessageBox.about( + EricMessageBox.about( self, self.tr("SQL Browser"), self.tr( @@ -202,4 +202,4 @@ """ Private slot to show info about Qt. """ - E5MessageBox.aboutQt(self, self.tr("SQL Browser")) + EricMessageBox.aboutQt(self, self.tr("SQL Browser"))