diff options
| author | Filip Fila <[email protected]> | 2026-04-02 12:18:30 +0000 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-04-02 12:18:30 +0000 |
| commit | 6e48c057b9595427ee0a5c245c7c98b2817ff2ab (patch) | |
| tree | fccd82c606a889408889a444f94c434ddbdffb70 /src/dolphinpackageinstaller.cpp | |
| parent | e865a1a33cd23fd8ec55315694152262731f727c (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):

After (MS Windows 9x):

Diffstat (limited to 'src/dolphinpackageinstaller.cpp')
0 files changed, 0 insertions, 0 deletions
