9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 import os |
12 import os |
13 |
13 |
14 from PyQt4.QtCore import QObject, pyqtSignal |
14 from PyQt5.QtCore import QObject, pyqtSignal, QCoreApplication |
15 from PyQt4.QtGui import QApplication |
|
16 |
15 |
17 from E5Gui.E5Application import e5App |
16 from E5Gui.E5Application import e5App |
18 from E5Gui.E5Action import E5Action |
17 from E5Gui.E5Action import E5Action |
19 from Project.ProjectBrowserModel import ProjectBrowserFileItem |
18 from Project.ProjectBrowserModel import ProjectBrowserFileItem |
20 from Utilities import determinePythonVersion |
19 from Utilities import determinePythonVersion |
167 fixedMsg = result.pop() |
166 fixedMsg = result.pop() |
168 if fixedMsg: |
167 if fixedMsg: |
169 fixes += 1 |
168 fixes += 1 |
170 trFixedMsg = getTranslatedMessage(fixedMsg) |
169 trFixedMsg = getTranslatedMessage(fixedMsg) |
171 |
170 |
172 msg += "\n" + QApplication.translate( |
171 msg += "\n" + QCoreApplication.translate( |
173 'CodeStyleCheckerDialog', "Fix: {0}").format(trFixedMsg) |
172 'CodeStyleCheckerDialog', "Fix: {0}").format(trFixedMsg) |
174 |
173 |
175 result[2] = msg |
174 result[2] = msg |
176 self.styleChecked.emit(fn, codeStyleCheckerStats, fixes, results) |
175 self.styleChecked.emit(fn, codeStyleCheckerStats, fixes, results) |
177 |
176 |