147 |
147 |
148 if not engine.registerDocumentation(fi.absoluteFilePath()): |
148 if not engine.registerDocumentation(fi.absoluteFilePath()): |
149 self.errorMessage.emit( |
149 self.errorMessage.emit( |
150 self.trUtf8( |
150 self.trUtf8( |
151 """<p>The file <b>{0}</b> could not be""" |
151 """<p>The file <b>{0}</b> could not be""" |
152 """ registered. <br/>Reason: {1}</p>""")\ |
152 """ registered. <br/>Reason: {1}</p>""") |
153 .format(fi.absoluteFilePath, engine.error()) |
153 .format(fi.absoluteFilePath, engine.error()) |
154 ) |
154 ) |
155 return False |
155 return False |
156 |
156 |
157 engine.setCustomValue( |
157 engine.setCustomValue( |
158 versionKey, |
158 versionKey, |
159 fi.lastModified().toString(Qt.ISODate) + '|' + \ |
159 fi.lastModified().toString(Qt.ISODate) + '|' + |
160 fi.absoluteFilePath()) |
160 fi.absoluteFilePath()) |
161 return True |
161 return True |
162 |
162 |
163 return False |
163 return False |
164 |
164 |
208 |
208 |
209 if not engine.registerDocumentation(fi.absoluteFilePath()): |
209 if not engine.registerDocumentation(fi.absoluteFilePath()): |
210 self.errorMessage.emit( |
210 self.errorMessage.emit( |
211 self.trUtf8( |
211 self.trUtf8( |
212 """<p>The file <b>{0}</b> could not be""" |
212 """<p>The file <b>{0}</b> could not be""" |
213 """ registered. <br/>Reason: {1}</p>""")\ |
213 """ registered. <br/>Reason: {1}</p>""") |
214 .format(fi.absoluteFilePath, engine.error()) |
214 .format(fi.absoluteFilePath, engine.error()) |
215 ) |
215 ) |
216 return False |
216 return False |
217 |
217 |
218 engine.setCustomValue( |
218 engine.setCustomValue( |
219 versionKey, |
219 versionKey, |
220 fi.lastModified().toString(Qt.ISODate) + '|' + \ |
220 fi.lastModified().toString(Qt.ISODate) + '|' + |
221 fi.absoluteFilePath()) |
221 fi.absoluteFilePath()) |
222 return True |
222 return True |
223 |
223 |
224 return False |
224 return False |