mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-22 18:52:31 +08:00
5.5.14 temp fix for https://bugreports.qt.io/browse/QTBUG-115481
This commit is contained in:
parent
bf2818fc37
commit
65ba497db1
@ -3803,7 +3803,7 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter
|
||||
|
||||
if (!hasMenu && ct != QMacStylePrivate::Button_SquareButton) {
|
||||
if (isPressed || (isActive && isEnabled && ((btn.state & State_On) || isDefault))) {
|
||||
if (!isPressed && NSApplication.sharedApplication.active) {
|
||||
if (NSApplication.sharedApplication.active) {
|
||||
// !isPressed means isActive, but it can differ from
|
||||
// the actual application state, so don't set white.
|
||||
btn.palette.setColor(QPalette::ButtonText, Qt::white);
|
||||
|
Loading…
Reference in New Issue
Block a user