Add 2px of padding for edit-clear icon
edit-clear icon tends to sit on left side of frame. adding 2 px makes it look nicer.
This commit is contained in:
parent
7a57586f90
commit
6df356327d
|
@ -76,7 +76,7 @@ QSearchField::QSearchField(QWidget *parent) : QWidget(parent) {
|
|||
|
||||
clearbutton->setIcon(clearIcon);
|
||||
clearbutton->setIconSize(QSize(20, 20));
|
||||
clearbutton->setStyleSheet("border: none; padding: 0px;");
|
||||
clearbutton->setStyleSheet("border: none; padding: 2px;");
|
||||
clearbutton->resize(clearbutton->sizeHint());
|
||||
|
||||
QObject::connect(clearbutton, &QToolButton::clicked, this, &QSearchField::clear);
|
||||
|
|
Loading…
Reference in New Issue