From: <> Date: Fri, 13 Aug 2010 15:00:04 +0000 (+0200) Subject: Rounded search lineedit on the Mac X-Git-Tag: 1.2~11^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da913cd7b70fd55f01e79ac7a32c7fd0268451c0;p=minitube Rounded search lineedit on the Mac --- diff --git a/src/searchlineedit.cpp b/src/searchlineedit.cpp index 42c2aee..609d97d 100644 --- a/src/searchlineedit.cpp +++ b/src/searchlineedit.cpp @@ -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");