← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1572093] [NEW] Action's iconSource property not used in ListItemActions

 

Public bug reported:

This code doesn't work, the icon is missing. It only works with
iconName.

trailingActions: ListItemActions {
    actions: [
        Action {
            iconSource: "qrc:///src/gui/ubuntu/icons/swap-with-via.svg"
        }
    ]
}

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  This code doesn't work, the icon is missing. It only works with
  iconName.
  
-                 trailingActions: ListItemActions {
-                     actions: [
-                         Action {
-                             iconSource: "qrc:///src/gui/ubuntu/icons/swap-with-via.svg"
-                             onTriggered: fahrplanBackend.swapStations(FahrplanBackend.DepartureStation, FahrplanBackend.ViaStation)
-                         }
-                     ]
-                 }
+ trailingActions: ListItemActions {
+     actions: [
+         Action {
+             iconSource: "qrc:///src/gui/ubuntu/icons/swap-with-via.svg"
+         }
+     ]
+ }

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1572093

Title:
  Action's iconSource property not used in ListItemActions

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  This code doesn't work, the icon is missing. It only works with
  iconName.

  trailingActions: ListItemActions {
      actions: [
          Action {
              iconSource: "qrc:///src/gui/ubuntu/icons/swap-with-via.svg"
          }
      ]
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1572093/+subscriptions