15 Qt, QCoreApplication |
15 Qt, QCoreApplication |
16 ) |
16 ) |
17 from PyQt5.QtGui import QKeySequence |
17 from PyQt5.QtGui import QKeySequence |
18 from PyQt5.QtWidgets import ( |
18 from PyQt5.QtWidgets import ( |
19 QSizePolicy, QSpacerItem, QWidget, QHBoxLayout, QWhatsThis, QMdiArea, |
19 QSizePolicy, QSpacerItem, QWidget, QHBoxLayout, QWhatsThis, QMdiArea, |
20 qApp, QApplication, QComboBox, QVBoxLayout, QAction, QLabel |
20 QApplication, QComboBox, QVBoxLayout, QAction, QLabel |
21 ) |
21 ) |
22 from PyQt5 import uic |
22 from PyQt5 import uic |
23 |
23 |
24 |
24 |
25 from E5Gui import E5MessageBox, E5FileDialog |
25 from E5Gui import E5MessageBox, E5FileDialog |
26 from E5Gui.E5MainWindow import E5MainWindow |
26 from E5Gui.E5MainWindow import E5MainWindow |
|
27 from E5Gui.E5Application import e5App |
27 |
28 |
28 import UI.PixmapCache |
29 import UI.PixmapCache |
29 import UI.Config |
30 import UI.Config |
30 |
31 |
31 import Preferences |
32 import Preferences |
201 self.exitAct.setStatusTip(self.tr('Quit the application')) |
202 self.exitAct.setStatusTip(self.tr('Quit the application')) |
202 self.exitAct.setWhatsThis(self.tr( |
203 self.exitAct.setWhatsThis(self.tr( |
203 """<b>Quit</b>""" |
204 """<b>Quit</b>""" |
204 """<p>Quit the application.</p>""" |
205 """<p>Quit the application.</p>""" |
205 )) |
206 )) |
206 self.exitAct.triggered.connect(qApp.closeAllWindows) |
207 self.exitAct.triggered.connect(e5App().closeAllWindows) |
207 |
208 |
208 self.whatsThisAct = QAction( |
209 self.whatsThisAct = QAction( |
209 UI.PixmapCache.getIcon("whatsThis"), |
210 UI.PixmapCache.getIcon("whatsThis"), |
210 self.tr('&What\'s This?'), self) |
211 self.tr('&What\'s This?'), self) |
211 self.whatsThisAct.setShortcut(QKeySequence(self.tr("Shift+F1"))) |
212 self.whatsThisAct.setShortcut(QKeySequence(self.tr("Shift+F1"))) |