QScintilla/Printer.py

changeset 3656
441956d8fce5
parent 3591
2f2a4a76dd22
child 4021
195a471c327b
--- a/QScintilla/Printer.py	Sun Jun 29 14:00:30 2014 +0200
+++ b/QScintilla/Printer.py	Sun Jun 29 20:13:56 2014 +0200
@@ -9,9 +9,10 @@
 
 from __future__ import unicode_literals
 
-from PyQt4.QtCore import QTime, QDate, Qt
-from PyQt4.QtGui import QColor, QPrinter, QApplication
-from PyQt4.Qsci import QsciPrinter
+from PyQt5.QtCore import QTime, QDate, Qt, QCoreApplication
+from PyQt5.QtGui import QColor
+from PyQt5.QtPrintSupport import QPrinter
+from PyQt5.Qsci import QsciPrinter
 
 import Preferences
 
@@ -62,7 +63,7 @@
         """
         fn = self.docName()
         
-        header = QApplication.translate(
+        header = QCoreApplication.translate(
             'Printer', '{0} - Printed on {1}, {2} - Page {3}')\
             .format(fn, self.date, self.time, pagenr)
         

eric ide

mercurial