]> git.sur5r.net Git - minitube/commitdiff
Rounded search lineedit on the Mac
author <> <>
Fri, 13 Aug 2010 15:00:04 +0000 (17:00 +0200)
committerFlavio <flavio@guodil.local>
Fri, 13 Aug 2010 15:00:04 +0000 (17:00 +0200)
src/searchlineedit.cpp

index 42c2aeee3726e07708d31500b805ec02a631790a..609d97dcc6847fe528cb5066f1fd87b913bfb015 100644 (file)
@@ -173,6 +173,11 @@ m_searchButton(new SearchButton(this))
     connect(lineEdit(), SIGNAL(returnPressed()),
             this, SLOT(returnPressed()));
 
+#ifdef APP_MAC
+    setAttribute(Qt::WA_MacShowFocusRect, false);
+    setStyleSheet("SearchLineEdit { border: 1px inset gray; border-radius: 15px; background: palette(base)} SearchLineEdit::focus { border: 2px solid #6fa7e0 }");
+#endif
+
     setLeftWidget(m_searchButton);
     m_inactiveText = tr("Search");