OSDN Git Service

fakevim: also set foreground color for search matches
authorhjk <qtc-committer@nokia.com>
Wed, 3 Aug 2011 10:07:20 +0000 (12:07 +0200)
committerEike Ziller <eike.ziller@nokia.com>
Thu, 4 Aug 2011 07:13:57 +0000 (09:13 +0200)
Task-number: QTCREATORBUG-5604
Change-Id: Ic94ebbbb3d850624a8fbbc0e1d9d49ba70992ad0
(cherry picked from commit 00be04e1ea3b91849f963c9bca4d633fbdc352bc)
Reviewed-on: http://codereview.qt.nokia.com/2576
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
src/plugins/fakevim/fakevimhandler.cpp

index 01c34bd..fbff201 100644 (file)
@@ -3844,6 +3844,7 @@ void FakeVimHandler::Private::highlightMatches(const QString &needle)
             sel.cursor = tc;
             sel.format = tc.blockCharFormat();
             sel.format.setBackground(QColor(177, 177, 0));
+            sel.format.setForeground(Qt::black);
             m_searchSelections.append(sel);
             if (document()->characterAt(tc.position()) == ParagraphSeparator)
                 tc.movePosition(Right, MoveAnchor);