Allow configuring the color for the hover links

Cause blue doesn't fit nicely in all color schemes.
This commit is contained in:
Thorbjørn Lindeijer
2009-03-24 16:36:22 +01:00
parent 0729ae0191
commit f36ea6785c
5 changed files with 7 additions and 4 deletions

View File

@@ -65,6 +65,7 @@ TextEditorSettings::TextEditorSettings(QObject *parent)
// Special categories
const QPalette p = QApplication::palette();
formatDescriptions.push_back(FormatDescription(QLatin1String(C_LINK), tr("Link"), Qt::blue));
formatDescriptions.push_back(FormatDescription(QLatin1String(C_SELECTION), tr("Selection"), p.color(QPalette::HighlightedText)));
formatDescriptions.push_back(FormatDescription(QLatin1String(C_LINE_NUMBER), tr("Line Number")));
formatDescriptions.push_back(FormatDescription(QLatin1String(C_SEARCH_RESULT), tr("Search Result")));