Don't show focus rect for QCommandLinkButton
Since QPushButton sets WA_MacShowFocusRect attribute upon init, this will be set for QCommandLinkButton too. However, we do not want to draw the Mac focus frame for QCommandLink buttons so remove this attribute for them. Pick-to: 5.15 6.0 Change-Id: Ida7a437a54be078caaebc2c0744243d50e14a87f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
d3ee976aca
commit
f8f955151a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user