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 |
14 from PyQt5.QtCore import QObject, QCoreApplication |
15 from PyQt4.QtGui import QDialog, QApplication |
15 from PyQt5.QtWidgets import QDialog |
16 |
16 |
17 from E5Gui.E5Application import e5App |
17 from E5Gui.E5Application import e5App |
18 |
18 |
19 from E5Gui.E5Action import E5Action |
19 from E5Gui.E5Action import E5Action |
20 |
20 |
54 exe = 'eric5_doc' |
54 exe = 'eric5_doc' |
55 if Utilities.isWindowsPlatform(): |
55 if Utilities.isWindowsPlatform(): |
56 exe = os.path.join(getConfig("bindir"), exe + '.bat') |
56 exe = os.path.join(getConfig("bindir"), exe + '.bat') |
57 dataList.append({ |
57 dataList.append({ |
58 "programEntry": True, |
58 "programEntry": True, |
59 "header": QApplication.translate( |
59 "header": QCoreApplication.translate( |
60 "EricdocPlugin", "Eric5 Documentation Generator"), |
60 "EricdocPlugin", "Eric5 Documentation Generator"), |
61 "exe": exe, |
61 "exe": exe, |
62 "versionCommand": '--version', |
62 "versionCommand": '--version', |
63 "versionStartsWith": 'eric5_', |
63 "versionStartsWith": 'eric5_', |
64 "versionPosition": -3, |
64 "versionPosition": -3, |
70 exe = os.path.join(Utilities.getQtBinariesPath(), 'qhelpgenerator') |
70 exe = os.path.join(Utilities.getQtBinariesPath(), 'qhelpgenerator') |
71 if Utilities.isWindowsPlatform(): |
71 if Utilities.isWindowsPlatform(): |
72 exe += '.exe' |
72 exe += '.exe' |
73 dataList.append({ |
73 dataList.append({ |
74 "programEntry": True, |
74 "programEntry": True, |
75 "header": QApplication.translate( |
75 "header": QCoreApplication.translate( |
76 "EricdocPlugin", "Qt Help Tools"), |
76 "EricdocPlugin", "Qt Help Tools"), |
77 "exe": exe, |
77 "exe": exe, |
78 "versionCommand": '-v', |
78 "versionCommand": '-v', |
79 "versionStartsWith": 'Qt', |
79 "versionStartsWith": 'Qt', |
80 "versionPosition": -1, |
80 "versionPosition": -1, |
86 exe = os.path.join(Utilities.getQtBinariesPath(), 'qcollectiongenerator') |
86 exe = os.path.join(Utilities.getQtBinariesPath(), 'qcollectiongenerator') |
87 if Utilities.isWindowsPlatform(): |
87 if Utilities.isWindowsPlatform(): |
88 exe += '.exe' |
88 exe += '.exe' |
89 dataList.append({ |
89 dataList.append({ |
90 "programEntry": True, |
90 "programEntry": True, |
91 "header": QApplication.translate( |
91 "header": QCoreApplication.translate( |
92 "EricdocPlugin", "Qt Help Tools"), |
92 "EricdocPlugin", "Qt Help Tools"), |
93 "exe": exe, |
93 "exe": exe, |
94 "versionCommand": '-v', |
94 "versionCommand": '-v', |
95 "versionStartsWith": 'Qt', |
95 "versionStartsWith": 'Qt', |
96 "versionPosition": -1, |
96 "versionPosition": -1, |