From: Li Frank-B20596 Date: Sat, 27 Sep 2008 03:44:46 GMT Subject: [QGit] [PATCH] Modify Highlight Color at File Context View. Message-ID: <7FD1F85C96D70C4A89DA1DF7667EAE9607A217@zch01exm23.fsl.freescale.net> In-Reply-To: >From 3507b3f0b13287c5a25a31b238527b5920555c5c Mon Sep 17 00:00:00 2001 From: Frank Li Date: Sat, 27 Sep 2008 11:41:03 +0800 Subject: [PATCH] Modify Highlight Color at File Context View. Author and line number can be easily found when choose special commit. Signed-off-by: Frank Li --- src/filecontent.cpp | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/filecontent.cpp b/src/filecontent.cpp index 28e0f91..23c2e95 100644 --- a/src/filecontent.cpp +++ b/src/filecontent.cpp @@ -576,12 +576,14 @@ void FileContent::setAnnList() { listWidgetAnn->clear(); listWidgetAnn->addItems(sl); - QBrush b(Qt::darkGray); + QBrush fore(Qt::darkRed); + QBrush back(Qt::lightGray); QFont f(listWidgetAnn->font()); f.setBold(true); FOREACH (QVector, it, curIdLines) { QListWidgetItem* item = listWidgetAnn->item(*it); - item->setForeground(b); + item->setForeground(fore); + item->setBackground(back); item->setFont(f); } /* When listWidgetAnn get focus for the first time the current -- 1.6.0.2.1172.ga5ed0