| 104 | } |
| 105 | |
| 106 | void populateStyleFromConfig(SourceFormatterStyle& style, const KConfigGroup& styleConfig) |
| 107 | { |
| 108 | style.setCaption(styleConfig.readEntry(SourceFormatterController::styleCaptionKey(), QString{})); |
| 109 | style.setUsePreview(styleConfig.readEntry(SourceFormatterController::styleShowPreviewKey(), false)); |
| 110 | style.setContent(styleConfig.readEntry(SourceFormatterController::styleContentKey(), QString{})); |
| 111 | style.setMimeTypes( |
| 112 | styleConfig.readEntry<QStringList>(SourceFormatterController::styleMimeTypesKey(), QStringList{})); |
| 113 | style.setOverrideSample(styleConfig.readEntry(SourceFormatterController::styleSampleKey(), QString{})); |
| 114 | } |
| 115 | |
| 116 | struct FormatterData |
| 117 | { |
no test coverage detected