mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-28 00:15:06 +00:00
Use an auto raise mode to disable the border
This commit is contained in:
parent
e7d566eb2e
commit
b0930158df
@ -11,7 +11,7 @@ void LineEdit::setupClearButton()
|
||||
mClearButton = new QToolButton(this);
|
||||
mClearButton->setIcon(QIcon::fromTheme("edit-clear"));
|
||||
mClearButton->setCursor(Qt::ArrowCursor);
|
||||
mClearButton->setStyleSheet("QToolButton { border: none; padding: 0px; }");
|
||||
mClearButton->setAutoRaise(true);
|
||||
mClearButton->hide();
|
||||
connect(mClearButton, &QToolButton::clicked, this, &LineEdit::clear);
|
||||
connect(this, &LineEdit::textChanged, this, &LineEdit::updateClearButton);
|
||||
|
Loading…
Reference in New Issue
Block a user