| 293 | } |
| 294 | |
| 295 | bool SourceFileTemplate::hasCustomOptions() const |
| 296 | { |
| 297 | Q_D(const SourceFileTemplate); |
| 298 | |
| 299 | Q_ASSERT(isValid()); |
| 300 | |
| 301 | KConfig templateConfig(d->descriptionFileName); |
| 302 | KConfigGroup cg(&templateConfig, QStringLiteral("General")); |
| 303 | bool hasOptions = d->archive->directory()->entries().contains(cg.readEntry("OptionsFile", "options.kcfg")); |
| 304 | |
| 305 | qCDebug(LANGUAGE) << cg.readEntry("OptionsFile", "options.kcfg") << hasOptions; |
| 306 | return hasOptions; |
| 307 | } |
| 308 | |
| 309 | QVector<SourceFileTemplate::ConfigOptionGroup> SourceFileTemplate::customOptions(TemplateRenderer* renderer) const |
| 310 | { |