| 156 | } |
| 157 | |
| 158 | QDebug operator<<(QDebug dbg, const SourceFormatterStyle& style) |
| 159 | { |
| 160 | QDebugStateSaver saver(dbg); |
| 161 | // For a given formatter, a style is uniquely identified by its name. But style names never appear in |
| 162 | // the UI, only in config files. Style captions feature prominently in the UI. However, multiple styles |
| 163 | // can have equal captions. Print both the name and the caption to allow quick and easy style |
| 164 | // recognition by caption and reliable identification by name. |
| 165 | dbg.nospace() << "SourceFormatterStyle{name=" << style.name() << ", caption=" << style.caption() << '}'; |
| 166 | return dbg; |
| 167 | } |
| 168 | |
| 169 | SourceFormatterStyle ISourceFormatter::predefinedStyle(const QString& name) const |
| 170 | { |