on xenial help sign in
add some more comments
ee5d064Michael Zanetti
qml/Stages/TransformedSpreadDelegate.qml+2
@@ -23,7 +23,9 @@ import Ubuntu.Components 0.1
23SpreadDelegate {
23SpreadDelegate {
24 id: root
24 id: root
25
25
26+ // Set this to true when this tile is selected in the spread. The animation will change to bring the tile to front.
26 property bool selected: false
27 property bool selected: false
28+ // Set this to true when another tile in the spread is selected. The animation will change to fade this tile out.
27 property bool otherSelected: false
29 property bool otherSelected: false
28
30
29 // The progress animates the tiles. A value > 0 makes it appear from the right edge. At 1 it reaches the end position.
31 // The progress animates the tiles. A value > 0 makes it appear from the right edge. At 1 it reaches the end position.
qml/Stages/TransformedTabletSpreadDelegate.qml+6−2
@@ -24,12 +24,16 @@ import Unity.Application 0.1
24SpreadDelegate {
24SpreadDelegate {
25 id: root
25 id: root
26
26
27+ // Set this to true when this tile is selected in the spread. The animation will change to bring the tile to front.
28+ property bool selected: false
29+ // Set this to true when another tile in the spread is selected. The animation will change to fade this tile out.
30+ property bool otherSelected: false
31+ // Set this to true when this tile a currently active on either the MS or the SS.
27 property bool active: false
32 property bool active: false
33+
28 property int zIndex
34 property int zIndex
29 property real progress: 0
35 property real progress: 0
30 property real animatedProgress: 0
36 property real animatedProgress: 0
31− property bool selected: false
32− property bool otherSelected: false
33
37
34 property real startDistance: units.gu(5)
38 property real startDistance: units.gu(5)
35 property real endDistance: units.gu(.5)
39 property real endDistance: units.gu(.5)