| 124 | } |
| 125 | |
| 126 | SourceFormatterStyle style() const |
| 127 | { |
| 128 | Q_ASSERT(formatter); |
| 129 | SourceFormatterStyle style(styleName); |
| 130 | const KConfigGroup config = globalConfig().group(formatter->name()); |
| 131 | if (config.hasGroup(styleName)) { |
| 132 | populateStyleFromConfig(style, config.group(styleName)); |
| 133 | } |
| 134 | return style; |
| 135 | } |
| 136 | }; |
| 137 | |
| 138 | FormatterData readFormatterData(const KConfigGroup& sourceFormatterConfig, const QString& mimeTypeName, |
no test coverage detected