Use IconUtil for Carousel.
commit2382acf99c1a751fa749f222b68300a6ea084139
authorYing-Chun Liu <paul.liu@canonical.com>
dateTue 16 Jul 2013, 23:09 (13 years ago)
parentac18504
Dash/Generic/GenericCarousel.qml+2−1
@@ -17,6 +17,7 @@
1717import QtQuick 2.0
1818import Ubuntu.Components 0.1
1919import "../../Components"
20+import "../../Components/IconUtil.js" as IconUtil
2021
2122Carousel {
2223 id: genericCarousel
@@ -41,7 +42,7 @@ Carousel {
4142 image: Image {
4243 asynchronous: true
4344 sourceSize { width: item.width; height: item.height }
44− source: model ? model.icon : ""
45+ source: model ? IconUtil.from_gicon(model.icon) : ""
4546 }
4647 }
4748