MCPcopy Create free account
hub / github.com/KDE/kdevelop / templateOptions

Method templateOptions

plugins/filetemplates/templateoptionspage.cpp:147–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147QVariantHash 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
163void TemplateOptionsPage::setFocusToFirstEditWidget()
164{

Callers 1

nextMethod · 0.80

Calls 4

propertyMethod · 0.80
containsMethod · 0.45
insertMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected