- case Text: // editor foreground (text) color
- case Foreground: // foreground (text) color
- aRes = Qt::red;
- break;
- case HighlightedText: // highlighted foreground (text) color
- aRes = Qt::black;
- break;
- case Base: // editor background color
- case Background: // background color
- case Highlight: // highlight background color
- default:
- aRes = Qt::red;
+ switch( theColorRole )
+ {
+ case Text: // editor foreground (text) color
+ case Foreground: // foreground (text) color
+ aRes = Qt::red;
+ break;
+ case HighlightedText: // highlighted foreground (text) color
+ aRes = Qt::black;
+ break;
+ case Base: // editor background color
+ case Background: // background color
+ case Highlight: // highlight background color
+ default:
+ aRes = Qt::red;
+ }