8 """ |
8 """ |
9 |
9 |
10 |
10 |
11 from PyQt5.QtCore import QTimer, QUrl |
11 from PyQt5.QtCore import QTimer, QUrl |
12 from PyQt5.QtGui import QKeySequence |
12 from PyQt5.QtGui import QKeySequence |
13 from PyQt5.QtWidgets import qApp |
|
14 from PyQt5.QtSql import QSqlError, QSqlDatabase |
13 from PyQt5.QtSql import QSqlError, QSqlDatabase |
15 |
14 |
16 from E5Gui.E5Action import E5Action |
15 from E5Gui.E5Action import E5Action |
17 from E5Gui import E5MessageBox |
16 from E5Gui import E5MessageBox |
18 from E5Gui.E5MainWindow import E5MainWindow |
17 from E5Gui.E5MainWindow import E5MainWindow |
|
18 from E5Gui.E5Application import e5App |
19 |
19 |
20 import UI.PixmapCache |
20 import UI.PixmapCache |
21 import UI.Config |
21 import UI.Config |
22 |
22 |
23 import Preferences |
23 import Preferences |
124 self.exitAct.setStatusTip(self.tr('Quit the SQL browser')) |
124 self.exitAct.setStatusTip(self.tr('Quit the SQL browser')) |
125 self.exitAct.setWhatsThis(self.tr( |
125 self.exitAct.setWhatsThis(self.tr( |
126 """<b>Quit</b>""" |
126 """<b>Quit</b>""" |
127 """<p>Quit the SQL browser.</p>""" |
127 """<p>Quit the SQL browser.</p>""" |
128 )) |
128 )) |
129 self.exitAct.triggered.connect(qApp.closeAllWindows) |
129 self.exitAct.triggered.connect(e5App().closeAllWindows) |
130 |
130 |
131 self.aboutAct = E5Action( |
131 self.aboutAct = E5Action( |
132 self.tr('About'), |
132 self.tr('About'), |
133 self.tr('&About'), |
133 self.tr('&About'), |
134 0, 0, self, 'sql_help_about') |
134 0, 0, self, 'sql_help_about') |