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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1572093

Title:
  Action's iconSource property not used in ListItemActions

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to