┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kstandarditemlistview.cpp
diff options
context:
space:
mode:
authorFilip Fila <[email protected]>2026-04-02 12:18:30 +0000
committerMéven Car <[email protected]>2026-04-02 12:18:30 +0000
commit6e48c057b9595427ee0a5c245c7c98b2817ff2ab (patch)
treefccd82c606a889408889a444f94c434ddbdffb70 /src/kitemviews/kstandarditemlistview.cpp
parente865a1a33cd23fd8ec55315694152262731f727c (diff)
dolphin/kitemlistwidget: Fix full selected state persisting on deselect with non-Breeze QStyles
For non-Breeze QStyles Dolphin is currently drawing the full highlight effect for items even when they are deselected. The issues is that it treats keyboard focus as the same state as a selected state, resulting in a persisting highlight effect. This patch adds and extra check to paint `State_Selected` only when `m_selected` is true, thereby fixing the problem. **TEST PLAN** Tested with Oxygen, Fusion, Kvantum, Darkly, MS Windows 9x. - all of the styles had the issue with the full selected state persisting on mouse deselect - after this change all of the styles lost the full selected state and retained only their keyboard focus state **SCREENSHOTS** Before (MS Windows 9x): ![2026-03-29_21-42-03](/uploads/b369a63acb817a2b79e769a7c99a0378/2026-03-29_21-42-03.mp4) After (MS Windows 9x): ![2026-03-29_21-40-54](/uploads/b65230529dee7b552d58a1139353eca9/2026-03-29_21-40-54.mp4)
Diffstat (limited to 'src/kitemviews/kstandarditemlistview.cpp')
0 files changed, 0 insertions, 0 deletions