From 79f888501801e4db2fe0a9e2bf537484da7b6362 Mon Sep 17 00:00:00 2001 From: <> Date: Sun, 11 Apr 2010 14:38:30 +0200 Subject: [PATCH] Draw icon with a style color, not a fixed grey --- src/searchlineedit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/searchlineedit.cpp b/src/searchlineedit.cpp index 89edb34..42c2aee 100644 --- a/src/searchlineedit.cpp +++ b/src/searchlineedit.cpp @@ -138,7 +138,7 @@ void SearchButton::paintEvent(QPaintEvent *event) QPainter painter(this); painter.setRenderHint(QPainter::Antialiasing, true); - painter.setPen(QPen(Qt::darkGray, height() / 10)); + painter.setPen(QPen(palette().color(QPalette::Mid), height() / 10)); painter.drawPath(myPath); if (m_menu) { @@ -181,6 +181,7 @@ m_searchButton(new SearchButton(this)) // completion completion = new GSuggestCompletion(this, m_lineEdit); + } void SearchLineEdit::paintEvent(QPaintEvent *event) -- 2.39.5