diff options
| author | Akseli Lahtinen <[email protected]> | 2026-05-29 13:25:07 +0300 |
|---|---|---|
| committer | Akseli Lahtinen <[email protected]> | 2026-05-29 15:59:42 +0300 |
| commit | 8f0baa45053312914812cc908e94138bc23fe44f (patch) | |
| tree | aeee3bf9cb3a602ceeda21f555de887ec5426928 /src/kitemviews/kstandarditemlistwidget.cpp | |
| parent | d89e2e9e22effb051bf438694049c8b34b10bf29 (diff) | |
KItemListWidget: Add pressedChanged
When items were pressed, we never called the
updateAdditionalInfoTextColor, which caused
some of the text colors get out of sync.
This was especially noticeable in details view
when using an accent color that makes the font
color change to preserve readability.
BUG: 508329
Diffstat (limited to 'src/kitemviews/kstandarditemlistwidget.cpp')
| -rw-r--r-- | src/kitemviews/kstandarditemlistwidget.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kitemviews/kstandarditemlistwidget.cpp b/src/kitemviews/kstandarditemlistwidget.cpp index ddbb8b6a1..036aff608 100644 --- a/src/kitemviews/kstandarditemlistwidget.cpp +++ b/src/kitemviews/kstandarditemlistwidget.cpp @@ -828,6 +828,13 @@ void KStandardItemListWidget::selectedChanged(bool selected) m_dirtyContent = true; } +void KStandardItemListWidget::pressedChanged(bool pressed) +{ + Q_UNUSED(pressed) + updateAdditionalInfoTextColor(); + m_dirtyContent = true; +} + void KStandardItemListWidget::siblingsInformationChanged(const QBitArray ¤t, const QBitArray &previous) { Q_UNUSED(current) |
