diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2010-10-12 13:09:29 +0200 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2010-10-12 13:13:08 +0200 |
commit | 25e4655d909de21b98376f46cad3e7ae04024f3b (patch) | |
tree | c8c6f2a6208cee87a25078dbce7c9a57c36aad95 /src/plugins/texteditor/plaintexteditor.cpp | |
parent | 88ba37f80f4b21f3cacf8c8d803d828ac426c5cc (diff) | |
download | qt-creator-25e4655d909de21b98376f46cad3e7ae04024f3b.tar.gz |
Generic highlighter: Apply format only if it's a configured one; Remove hard-coded colors.
Reviewed-by: con
Diffstat (limited to 'src/plugins/texteditor/plaintexteditor.cpp')
-rw-r--r-- | src/plugins/texteditor/plaintexteditor.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp index 5d169aae71..74060a2e2e 100644 --- a/src/plugins/texteditor/plaintexteditor.cpp +++ b/src/plugins/texteditor/plaintexteditor.cpp @@ -134,20 +134,6 @@ void PlainTextEditor::setFontSettings(const FontSettings &fs) highlighter->configureFormat(Highlighter::String, fs.toTextCharFormat( QLatin1String(Constants::C_STRING))); - // Creator does not have corresponding formats for the following ones. Implement them? - // For now I will leave hardcoded values. - QTextCharFormat format; - format.setForeground(Qt::blue); - highlighter->configureFormat(Highlighter::Others, format); - format.setForeground(Qt::red); - highlighter->configureFormat(Highlighter::Alert, format); - format.setForeground(Qt::darkBlue); - highlighter->configureFormat(Highlighter::Function, format); - format.setForeground(Qt::darkGray); - highlighter->configureFormat(Highlighter::RegionMarker, format); - format.setForeground(Qt::darkRed); - highlighter->configureFormat(Highlighter::Error, format); - highlighter->rehighlight(); } } |