Merge pull request #2760 from arunh/osx-search-cosmetic-fix

Cosmetic fix for search box icon on OSX
This commit is contained in:
Mark Liversedge
2018-02-15 19:43:35 +00:00
committed by GitHub

View File

@@ -51,7 +51,11 @@ SearchBox::SearchBox(Context *context, QWidget *parent, bool nochooser)
// make sure its underneath the toggle button
toolButton = new QToolButton(this);
toolButton->setFixedSize(QSize(16 *dpiXFactor,16 *dpiYFactor));
#ifdef Q_OS_MAC
toolButton->setStyleSheet("QToolButton { background: transparent; }");
#else
toolButton->setStyleSheet("QToolButton { border: none; padding: 0px; }");
#endif
toolButton->setCursor(Qt::ArrowCursor);
toolButton->setPopupMode(QToolButton::InstantPopup);