Added categories for occurrences and for renaming occurrences

So they can be adapted in the color schemes.
This commit is contained in:
Thorbjørn Lindeijer
2009-07-14 10:34:17 +02:00
parent 12911cda5c
commit 8cc916a0ca
5 changed files with 15 additions and 5 deletions

View File

@@ -190,6 +190,10 @@ QColor FormatDescription::background() const
} else if (m_name == QLatin1String(Constants::C_SELECTION)) {
const QPalette palette = QApplication::palette();
return palette.color(QPalette::Highlight);
} else if (m_name == QLatin1String(Constants::C_OCCURRENCES)) {
return QColor(220, 220, 220);
} else if (m_name == QLatin1String(Constants::C_OCCURRENCES_RENAME)) {
return QColor(255, 200, 200);
}
return QColor(); // invalid color
}