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

Method styleNameChanged

kdevplatform/shell/sourceformatterselectionedit.cpp:1167–1176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1165}
1166
1167void SourceFormatterSelectionEdit::styleNameChanged(QListWidgetItem* item)
1168{
1169 Q_D(SourceFormatterSelectionEdit);
1170
1171 d->assertValidSelectedStyleItem(item);
1172 d->validCurrentStyle().setCaption(item->text());
1173
1174 // Don't call updateUiForCurrentStyle(), because neither style buttons nor preview depend on style captions.
1175 emit changed();
1176}
1177
1178#include "moc_sourceformatterselectionedit.cpp"

Callers

nothing calls this directly

Calls 3

setCaptionMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected