From c0482898fd02b8278c0fb1609a2c2d0d70719811 Mon Sep 17 00:00:00 2001 From: kleuter Date: Wed, 12 May 2021 21:12:47 +0200 Subject: [PATCH] 5.15: Don't show focus rect for QCommandLinkButton (https://codereview.qt-project.org/c/qt/qtbase/+/326830) --- 5.15.2/qtbase/src/widgets/widgets/qcommandlinkbutton.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/5.15.2/qtbase/src/widgets/widgets/qcommandlinkbutton.cpp b/5.15.2/qtbase/src/widgets/widgets/qcommandlinkbutton.cpp index e9462ed..1a5b1b4 100644 --- a/5.15.2/qtbase/src/widgets/widgets/qcommandlinkbutton.cpp +++ b/5.15.2/qtbase/src/widgets/widgets/qcommandlinkbutton.cpp @@ -216,6 +216,7 @@ void QCommandLinkButtonPrivate::init() Q_Q(QCommandLinkButton); QPushButtonPrivate::init(); q->setAttribute(Qt::WA_Hover); + q->setAttribute(Qt::WA_MacShowFocusRect, false); QSizePolicy policy(QSizePolicy::Preferred, QSizePolicy::Preferred, QSizePolicy::PushButton); policy.setHeightForWidth(true);