10 |
10 |
11 from PyQt4.QtCore import * |
11 from PyQt4.QtCore import * |
12 from PyQt4.QtGui import * |
12 from PyQt4.QtGui import * |
13 from PyQt4.QtHelp import QHelpEngineCore |
13 from PyQt4.QtHelp import QHelpEngineCore |
14 |
14 |
15 from eric4config import getConfig |
15 from eric5config import getConfig |
16 |
16 |
17 class HelpDocsInstaller(QThread): |
17 class HelpDocsInstaller(QThread): |
18 """ |
18 """ |
19 Class implementing the worker thread populating and updating the QtHelp |
19 Class implementing the worker thread populating and updating the QtHelp |
20 documentation database. |
20 documentation database. |
136 |
136 |
137 return False |
137 return False |
138 |
138 |
139 def __installEric4Doc(self, engine): |
139 def __installEric4Doc(self, engine): |
140 """ |
140 """ |
141 Private method to install/update the eric4 help documentation. |
141 Private method to install/update the eric5 help documentation. |
142 |
142 |
143 @param engine reference to the help engine (QHelpEngineCore) |
143 @param engine reference to the help engine (QHelpEngineCore) |
144 @return flag indicating success (boolean) |
144 @return flag indicating success (boolean) |
145 """ |
145 """ |
146 versionKey = "eric4_ide" |
146 versionKey = "eric5_ide" |
147 info = engine.customValue(versionKey, "") |
147 info = engine.customValue(versionKey, "") |
148 lst = info.split('|') |
148 lst = info.split('|') |
149 |
149 |
150 dt = QDateTime() |
150 dt = QDateTime() |
151 if len(lst) and lst[0]: |
151 if len(lst) and lst[0]: |