| Summary: | Click on the down arrow in "Choose application" window results in a shadow | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-qqc2-desktop-style | Reporter: | Patrick Silva <bugseforuns> |
| Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | ahiemstra, aleixpol, kde, nate, noahadvs, notmart, postix |
| Priority: | HI | ||
| Version First Reported In: | 6.17.0 | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | screenshot | ||
It's what combobox does when it makes an empty list. There's an open merge request to fix this at https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/419 I looked into fixing the styling in the ComboBox component when it has an empty drop-down. There's logic in the Breeze QStyle to disable the arrow button when the drop-down is empty: https://invent.kde.org/plasma/breeze/-/blob/master/kstyle/breezestyle.cpp?ref_type=heads#L7717 However it would appear this doesn't come across the style bridge for the QML version. (In reply to Nate Graham from comment #2) > There's an open merge request to fix this at > https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/419 seems completely unrelated? A possibly relevant merge request was started @ https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/475 A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze/-/merge_requests/554 Git commit e7fbca2734afb753bc44c08335955c0448971c48 by Marco Martin. Committed on 06/08/2025 at 13:58. Pushed by mart into branch 'master'. ComboBox: Disallow opening empty comboboxes Don't let the user open a combobox which has zero items in the popup. Unfortunately there isn't dedicated api for that and the popup has to be dinamically assigned or unassigned, but it works well. the arrow won't yet change its look, as it needs adjustment in Breeze together with https://invent.kde.org/plasma/breeze/-/merge_requests/554 M +5 -1 org.kde.desktop/ComboBox.qml https://invent.kde.org/frameworks/qqc2-desktop-style/-/commit/e7fbca2734afb753bc44c08335955c0448971c48 Git commit bd32342c80286886e626bcb2ad207dd9be509356 by Marco Martin. Committed on 06/08/2025 at 13:58. Pushed by mart into branch 'master'. ComboBox: detect empty combobox on QtQuickControls as well Also when styling a QQC combobox try to detect when the combobox is empty, by the style exposing "count" property on the style proxy needs https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/475 M +10 -3 kstyle/breezestyle.cpp https://invent.kde.org/plasma/breeze/-/commit/bd32342c80286886e626bcb2ad207dd9be509356 A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze/-/merge_requests/555 Git commit abaf76d1213d9774ae8bf0a4b73a387a24fecdfa by Marco Martin. Committed on 06/08/2025 at 13:58. Pushed by mart into branch 'Plasma/6.4'. ComboBox: detect empty combobox on QtQuickControls as well Also when styling a QQC combobox try to detect when the combobox is empty, by the style exposing "count" property on the style proxy needs https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/475 (cherry picked from commit bd32342c80286886e626bcb2ad207dd9be509356) 28d87362 ComboBox: detect empty combobox on QtQuickControls as well Co-authored-by: Marco Martin <notmart@gmail.com> M +10 -3 kstyle/breezestyle.cpp https://invent.kde.org/plasma/breeze/-/commit/abaf76d1213d9774ae8bf0a4b73a387a24fecdfa Re-opening as the commit has to be reverted because it caused regressions worse than the original issue. https://invent.kde.org/frameworks/qqc2-desktop-style/-/commit/e5eef9ab76ff3a76a0327459239b68d6d7da4daf |
Created attachment 183315 [details] screenshot STEPS TO REPRODUCE 1. open Dolphin 2. right-click on a file 3. hover over "Open with" submenu and chose "Other application..." 4. click on the down arrow OBSERVED RESULT the shadow seen in the attached screenshot EXPECTED RESULT I'm not sure what exactly is expected here, but clearly the observed result is not correct SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 6.4.80 KDE Frameworks Version: 6.17.0 Qt Version: 6.9.1 Graphics Platform: Wayland