| 279 | } |
| 280 | |
| 281 | static SourceFormatterStyle createPredefinedStyle(const QString& name, const QString& caption = QString()) |
| 282 | { |
| 283 | SourceFormatterStyle st = SourceFormatterStyle( name ); |
| 284 | st.setCaption( caption.isEmpty() ? name : caption ); |
| 285 | AStyleFormatter fmt; |
| 286 | fmt.predefinedStyle( name ); |
| 287 | st.setContent( fmt.saveStyle() ); |
| 288 | st.setMimeTypes(ISourceFormatter::mimeTypesSupportedByBuiltInStyles()); |
| 289 | st.setUsePreview(true); |
| 290 | return st; |
| 291 | } |
| 292 | |
| 293 | QVector<SourceFormatterStyle> AStylePlugin::predefinedStyles() const |
| 294 | { |
no test coverage detected