]> git.sur5r.net Git - minitube/commitdiff
Draw icon with a style color, not a fixed grey
author <> <>
Sun, 11 Apr 2010 12:38:30 +0000 (14:38 +0200)
committerFlavio <flavio@Lauras-MacBook.local>
Sun, 11 Apr 2010 12:38:30 +0000 (14:38 +0200)
src/searchlineedit.cpp

index 89edb34eced5f5deb15f2cbd8a44f5e6f645614d..42c2aeee3726e07708d31500b805ec02a631790a 100644 (file)
@@ -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)