Bug 470612

Summary: SwipeListItem action buttons lack icons in KF6
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Nate Graham <nate>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: major CC: bugseforuns, justin.zobel, me, notmart
Priority: NOR Keywords: qt6
Version: Master   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: ToolButtons with no icons

Description Nate Graham 2023-06-03 21:23:04 UTC
Created attachment 159455 [details]
ToolButtons with no icons

See attached screenshot of the Virtual Desktops KCM.

SwipeListItem.qml has the following code to draw the toolbuttons:

>             delegate: QQC2.ToolButton {
>                 icon.name: modelData.iconName !== "" ? modelData.iconName : ""
>                 icon.source: modelData.iconSource !== "" ? modelData.iconSource : ""

Use of iconName seems fishy since that's no longer in Qt6, but I tried changing it to icon.name and it didn't fix the problem.
Comment 1 Justin Zobel 2023-06-06 06:42:01 UTC
Can confirm.
Comment 2 Bug Janitor Service 2023-06-07 12:09:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1113
Comment 3 Nicolas Fella 2023-06-07 14:40:51 UTC
Git commit 77b16c6671a023f63acc4284b0821b50f2b83c64 by Nicolas Fella.
Committed on 07/06/2023 at 12:08.
Pushed by nicolasfella into branch 'master'.

[swipelistitem] Fix icons on action buttons

M  +2    -2    src/controls/templates/SwipeListItem.qml

https://invent.kde.org/frameworks/kirigami/-/commit/77b16c6671a023f63acc4284b0821b50f2b83c64