https://bugs.kde.org/show_bug.cgi?id=391681

            Bug ID: 391681
           Summary: Support icons in contextual actions
           Product: frameworks-kirigami
           Version: Master
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: n...@kde.org
  Target Milestone: Not decided

Discover DiscoverWindow.qml defines a refresh action:

Kirigami.Action {
        id: refreshAction
        readonly property QtObject action: ResourcesModel.updateAction
        text: action.text
        onTriggered: action.trigger()
        enabled: action.enabled
        tooltip: shortcut
        shortcut: "Ctrl+R"
    }



Discover updatesPage.qml uses it as a contextual action:

contextualActions: [refreshAction]



This works, and the action shows up as a toolbar button on the Updates page.
But it doesn't have an icon. When I try to add one:

@@ -89,6 +89,7 @@ Kirigami.ApplicationWindow
         id: refreshAction
         readonly property QtObject action: ResourcesModel.updateAction
         text: action.text
+        icon: "view-refresh"
         onTriggered: action.trigger()
         enabled: action.enabled
         tooltip: shortcut



...it doesn't work:

$ plasma-discover 
QQmlApplicationEngine failed to load component
qrc:/qml/DiscoverWindow.qml:92 Invalid property assignment: unsupported type
"ActionIconGroup_QMLTYPE_11*"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to