mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-22 10:40:06 +08:00
5.15: Don't show focus rect for QCommandLinkButton (https://codereview.qt-project.org/c/qt/qtbase/+/326830)
This commit is contained in:
parent
caba6addab
commit
c0482898fd
@ -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…
Reference in New Issue
Block a user