| 145 | } |
| 146 | |
| 147 | QVariantHash TemplateOptionsPage::templateOptions() const |
| 148 | { |
| 149 | QVariantHash values; |
| 150 | |
| 151 | for (const SourceFileTemplate::ConfigOption& entry : std::as_const(d->entries)) { |
| 152 | Q_ASSERT(d->controls.contains(entry.name)); |
| 153 | Q_ASSERT(d->typeProperties.contains(entry.type)); |
| 154 | |
| 155 | values.insert(entry.name, d->controls[entry.name]->property(d->typeProperties[entry.type].constData())); |
| 156 | } |
| 157 | |
| 158 | qCDebug(PLUGIN_FILETEMPLATES) << values.size() << d->entries.size(); |
| 159 | |
| 160 | return values; |
| 161 | } |
| 162 | |
| 163 | void TemplateOptionsPage::setFocusToFirstEditWidget() |
| 164 | { |