WebBrowser/Tools/FilePrinter.py

changeset 5736
000ea446ff4b
parent 5389
9b1c800daff3
child 6048
82ad8ec9548c
--- a/WebBrowser/Tools/FilePrinter.py	Sat May 13 13:46:05 2017 +0200
+++ b/WebBrowser/Tools/FilePrinter.py	Sat May 13 16:32:54 2017 +0200
@@ -14,10 +14,11 @@
 
 from __future__ import unicode_literals
 
-from PyQt5.QtCore import qVersion, QFile, QStandardPaths, QProcess
+from PyQt5.QtCore import QFile, QStandardPaths, QProcess
 from PyQt5.QtPrintSupport import QPrinter, QPrintEngine
 
 import Globals
+from Globals import qVersionTuple
 
 
 _FilePrintJobs = []
@@ -171,7 +172,7 @@
         argsList.append(fileName)
         
         self.__process = QProcess()
-        if qVersion() < "5.6.0":
+        if qVersionTuple() < (5, 6, 0):
             self.__process.error.connect(self.__processError)
         else:
             self.__process.errorOccurred.connect(self.__processError)

eric ide

mercurial