| 35 | } |
| 36 | |
| 37 | void 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 | |
| 53 | void SourceFormatterSettings::apply() |
| 54 | { |
nothing calls this directly
no test coverage detected