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

Method reset

kdevplatform/shell/settings/sourceformattersettings.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void SourceFormatterSettings::reset()
38{
39 KConfigGroup sessionConfig = Core::self()->sourceFormatterControllerInternal()->sessionConfig();
40
41 bool b = blockSignals( true );
42 chkKateModelines->blockSignals( !b );
43 chkKateOverrideIndentation->blockSignals( !b );
44 chkKateModelines->setChecked(sessionConfig.readEntry(SourceFormatterController::kateModeLineConfigKey(), false));
45 chkKateOverrideIndentation->setChecked(sessionConfig.readEntry(SourceFormatterController::kateOverrideIndentationConfigKey(), false));
46 blockSignals( b );
47 chkKateModelines->blockSignals( b );
48 chkKateOverrideIndentation->blockSignals( b );
49
50 formatterSelectionEdit->loadSettings(sessionConfig);
51}
52
53void SourceFormatterSettings::apply()
54{

Callers

nothing calls this directly

Calls 4

sessionConfigMethod · 0.80
readEntryMethod · 0.80
loadSettingsMethod · 0.45

Tested by

no test coverage detected