5.15: Don't show focus rect for QCommandLinkButton (https://codereview.qt-project.org/c/qt/qtbase/+/326830)

This commit is contained in:
kleuter 2021-05-12 21:12:47 +02:00
parent caba6addab
commit c0482898fd

View File

@ -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);