Bug 425867 - ItemDelegate not supporting icon
Summary: ItemDelegate not supporting icon
Status: RESOLVED FIXED
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Nicolas Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-27 12:28 UTC by Harald Sitter
Modified: 2022-02-14 20:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.92
Sentry Crash Report:


Attachments
main.qml (minimal example) (401 bytes, text/x-qml)
2020-08-27 12:28 UTC, Harald Sitter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Sitter 2020-08-27 12:28:34 UTC
Created attachment 131217 [details]
main.qml (minimal example)

ItemDelegate https://doc.qt.io/qt-5/qml-qtquick-controls2-itemdelegate.html is an ActionButton and as such has an icon property. This isn't being rendered by the org.kde.desktop style.

See attached example (make sure you have a foo.png in the pwd ;))

Works fine with fusion, material... styles
Comment 1 Nicolas Fella 2020-08-28 11:41:30 UTC
Now that's some coicidence:)

https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/24
Comment 2 Nate Graham 2022-02-14 20:32:47 UTC
Git commit d575ff3238ad89a0d2a65a0313f316c0974a526f by Nate Graham, on behalf of Alexander Stippich.
Committed on 14/02/2022 at 20:32.
Pushed by ngraham into branch 'master'.

Support displaying icons in ItemDelegate
FIXED-IN: 5.92

M  +24   -11   org.kde.desktop/ItemDelegate.qml

https://invent.kde.org/frameworks/qqc2-desktop-style/commit/d575ff3238ad89a0d2a65a0313f316c0974a526f