mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-22 19:00:04 +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);
|
Q_Q(QCommandLinkButton);
|
||||||
QPushButtonPrivate::init();
|
QPushButtonPrivate::init();
|
||||||
q->setAttribute(Qt::WA_Hover);
|
q->setAttribute(Qt::WA_Hover);
|
||||||
|
q->setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||||
|
|
||||||
QSizePolicy policy(QSizePolicy::Preferred, QSizePolicy::Preferred, QSizePolicy::PushButton);
|
QSizePolicy policy(QSizePolicy::Preferred, QSizePolicy::Preferred, QSizePolicy::PushButton);
|
||||||
policy.setHeightForWidth(true);
|
policy.setHeightForWidth(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user