Commit 386b12d3 authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Nate Graham
Browse files

kstyle: fix dock title toolbar buttons not indicating selected/active state

BUG: 440231
FIXED-IN: 5.24.3
parent ca408615
Pipeline #146030 passed with stage
in 2 minutes and 23 seconds
......@@ -4629,6 +4629,8 @@ namespace Breeze
const QIcon::State iconState( sunken ? QIcon::On : QIcon::Off );
QIcon::Mode iconMode;
if( !enabled ) iconMode = QIcon::Disabled;
else if( !flat && hasFocus ) iconMode = QIcon::Selected;
else if( mouseOver && flat ) iconMode = QIcon::Active;
else iconMode = QIcon::Normal;
const QPixmap pixmap = _helper->coloredIcon(toolButtonOption->icon, toolButtonOption->palette, iconSize, iconMode, iconState);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment