eric6/Tools/UIPreviewer.py

changeset 7761
ed2c67d20328
parent 7759
51aa6c6b66f7
child 7771
787a6b3f8c9f
equal deleted inserted replaced
7760:fcd3322bf6ed 7761:ed2c67d20328
10 10
11 from PyQt5.QtCore import QDir, QFileInfo, QEvent, QSize, Qt 11 from PyQt5.QtCore import QDir, QFileInfo, QEvent, QSize, Qt
12 from PyQt5.QtGui import QCursor, QKeySequence, QImageWriter, QPainter 12 from PyQt5.QtGui import QCursor, QKeySequence, QImageWriter, QPainter
13 from PyQt5.QtWidgets import ( 13 from PyQt5.QtWidgets import (
14 QSizePolicy, QSpacerItem, QWidget, QHBoxLayout, QWhatsThis, QDialog, 14 QSizePolicy, QSpacerItem, QWidget, QHBoxLayout, QWhatsThis, QDialog,
15 QScrollArea, qApp, QApplication, QStyleFactory, QFrame, QMainWindow, 15 QScrollArea, QApplication, QStyleFactory, QFrame, QMainWindow,
16 QComboBox, QVBoxLayout, QAction, QLabel 16 QComboBox, QVBoxLayout, QAction, QLabel
17 ) 17 )
18 from PyQt5.QtPrintSupport import QPrinter, QPrintDialog 18 from PyQt5.QtPrintSupport import QPrinter, QPrintDialog
19 from PyQt5 import uic 19 from PyQt5 import uic
20 20
21 21
22 from E5Gui import E5MessageBox, E5FileDialog 22 from E5Gui import E5MessageBox, E5FileDialog
23 from E5Gui.E5MainWindow import E5MainWindow 23 from E5Gui.E5MainWindow import E5MainWindow
24 from E5Gui.E5Application import e5App
24 25
25 import Preferences 26 import Preferences
26 import UI.PixmapCache 27 import UI.PixmapCache
27 import UI.Config 28 import UI.Config
28 29
182 self.exitAct.setStatusTip(self.tr('Quit the application')) 183 self.exitAct.setStatusTip(self.tr('Quit the application'))
183 self.exitAct.setWhatsThis(self.tr( 184 self.exitAct.setWhatsThis(self.tr(
184 """<b>Quit</b>""" 185 """<b>Quit</b>"""
185 """<p>Quit the application.</p>""" 186 """<p>Quit the application.</p>"""
186 )) 187 ))
187 self.exitAct.triggered.connect(qApp.closeAllWindows) 188 self.exitAct.triggered.connect(e5App().closeAllWindows)
188 189
189 self.copyAct = QAction( 190 self.copyAct = QAction(
190 UI.PixmapCache.getIcon("editCopy"), self.tr('&Copy'), self) 191 UI.PixmapCache.getIcon("editCopy"), self.tr('&Copy'), self)
191 self.copyAct.setShortcut( 192 self.copyAct.setShortcut(
192 QKeySequence(self.tr("Ctrl+C", "Edit|Copy"))) 193 QKeySequence(self.tr("Ctrl+C", "Edit|Copy")))

eric ide

mercurial