Preferences/ProgramsDialog.py

changeset 53
c3eb7cc1ff8b
parent 18
3b1f5d872fd7
child 55
b5c84934de9c
equal deleted inserted replaced
52:ba69827929ee 53:c3eb7cc1ff8b
13 13
14 from PyQt4.QtCore import pyqtSlot, Qt, QProcess 14 from PyQt4.QtCore import pyqtSlot, Qt, QProcess
15 from PyQt4.QtGui import QApplication, QTreeWidgetItem, QHeaderView, QCursor, \ 15 from PyQt4.QtGui import QApplication, QTreeWidgetItem, QHeaderView, QCursor, \
16 QDialog, QDialogButtonBox 16 QDialog, QDialogButtonBox
17 17
18 from E4Gui.E4Application import e4App 18 from E4Gui.E4Application import e5App
19 19
20 from .Ui_ProgramsDialog import Ui_ProgramsDialog 20 from .Ui_ProgramsDialog import Ui_ProgramsDialog
21 21
22 import Preferences 22 import Preferences
23 import Utilities 23 import Utilities
168 text = "enchant" 168 text = "enchant"
169 version = "" 169 version = ""
170 self.__createEntry(self.trUtf8("Spell Checker - PyEnchant"), text, version) 170 self.__createEntry(self.trUtf8("Spell Checker - PyEnchant"), text, version)
171 171
172 # do the plugin related programs 172 # do the plugin related programs
173 pm = e4App().getObject("PluginManager") 173 pm = e5App().getObject("PluginManager")
174 for info in pm.getPluginExeDisplayData(): 174 for info in pm.getPluginExeDisplayData():
175 if info["programEntry"]: 175 if info["programEntry"]:
176 self.__createProgramEntry( 176 self.__createProgramEntry(
177 info["header"], 177 info["header"],
178 info["exe"], 178 info["exe"],

eric ide

mercurial