From b0930158df43bc9eabc15df9ba42db58189ffba0 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 12 May 2024 11:56:04 +0400 Subject: [PATCH] Use an auto raise mode to disable the border --- apps/launcher/utils/lineedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/launcher/utils/lineedit.cpp b/apps/launcher/utils/lineedit.cpp index 0741e84c12..ad3f82ec30 100644 --- a/apps/launcher/utils/lineedit.cpp +++ b/apps/launcher/utils/lineedit.cpp @@ -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);