Moved the property to the delegate as suggested by michael.
commit15737de5c9c8eb77cd6230cb4d1f585ef145a2d4
authorLeo Arias <leo.arias@canonical.com>
dateWed 9 Jul 2014, 12:29 (12 years ago)
parent18fadff
qml/Launcher/LauncherDelegate.qml−1
@@ -20,7 +20,6 @@ import Ubuntu.Components 0.1
2020Item {
2121 id: root
2222
23− property string appId
2423 property string iconName
2524 property int count: -1
2625 property int progress: -1
qml/Launcher/LauncherPanel.qml+4−1
@@ -148,7 +148,10 @@ Item {
148148 delegate: FoldingLauncherDelegate {
149149 id: launcherDelegate
150150 objectName: "launcherDelegate" + index
151− appId: model.appId
151+ // We need the appId in the delegate in order to find
152+ // the right app when running autopilot tests for
153+ // multiple apps.
154+ property string appId: model.appId
152155 itemHeight: launcherListView.itemHeight
153156 itemWidth: launcherListView.itemWidth
154157 width: itemWidth