forked from qt-creator/qt-creator
Editor: Add Check for TextMark color definition.
Change-Id: I805402a5ec9595bd31b6d72c5934198c77a1f402 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -122,6 +122,11 @@ Theme::Color TextMark::categoryColor(Id category)
|
||||
return TextEditorPlugin::baseTextMarkRegistry()->categoryColor(category);
|
||||
}
|
||||
|
||||
bool TextMark::categoryHasColor(Id category)
|
||||
{
|
||||
return TextEditorPlugin::baseTextMarkRegistry()->categoryHasColor(category);
|
||||
}
|
||||
|
||||
void TextMark::setCategoryColor(Id category, Theme::Color color)
|
||||
{
|
||||
TextEditorPlugin::baseTextMarkRegistry()->setCategoryColor(category, color);
|
||||
@@ -230,6 +235,11 @@ Theme::Color TextMarkRegistry::categoryColor(Id category)
|
||||
return m_colors.value(category, Theme::ProjectExplorer_TaskWarn_TextMarkColor);
|
||||
}
|
||||
|
||||
bool TextMarkRegistry::categoryHasColor(Id category)
|
||||
{
|
||||
return m_colors.contains(category);
|
||||
}
|
||||
|
||||
void TextMarkRegistry::setCategoryColor(Id category, Theme::Color color)
|
||||
{
|
||||
if (m_colors[category] == color)
|
||||
|
||||
Reference in New Issue
Block a user