VCS: Colorize unmerged files in submit editor

So far, conflicted files were displayed like added ones.

Now they are marked obvious, as they disable the commit button.

Task-number: QTCREATORBUG-16297
Change-Id: Iedf834408a747c4fe5f2133790c5fb81e7fea265
Reviewed-by: Hugues Delorme <delorme.hugues@fougue.pro>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2016-05-19 19:01:25 +02:00
committed by Orgad Shaneh
parent 67f9a26208
commit 3a78b610d7
8 changed files with 15 additions and 3 deletions

View File

@@ -61,6 +61,9 @@ static QBrush fileStatusTextForeground(SubmitFileModel::FileStatusHint statusHin
case SubmitFileModel::FileRenamed:
statusTextColor = Theme::VcsBase_FileRenamed_TextColor;
break;
case VcsBase::SubmitFileModel::FileUnmerged:
statusTextColor = Theme::VcsBase_FileUnmerged_TextColor;
break;
}
return QBrush(Utils::creatorTheme()->color(statusTextColor));
}