on xenial help sign in
don't collide states
130e8e7Michael Zanetti
qml/Stages/TransformedTabletSpreadDelegate.qml+9−8
@@ -74,7 +74,8 @@ SpreadDelegate {
74 }
74 }
75 }
75 }
76
76
77− QtObject {
77+ // Required to be an item because we're using states on it.
78+ Item {
78 id: priv
79 id: priv
79
80
80 property bool nextInStack: spreadView.nextInStack == index;
81 property bool nextInStack: spreadView.nextInStack == index;
@@ -279,14 +280,14 @@ SpreadDelegate {
279
280
280 return 1;
281 return 1;
281 }
282 }
282− }
283
283
284− states: [
284+ states: [
285− State {
285+ State {
286− name: "sideStageDragging"; when: spreadView.sideStageDragging && root.isInSideStage
286+ name: "sideStageDragging"; when: spreadView.sideStageDragging && root.isInSideStage
287− PropertyChanges { target: priv; xTranslate: -spreadView.sideStageWidth + spreadView.sideStageWidth * spreadView.sideStageDragProgress }
287+ PropertyChanges { target: priv; xTranslate: -spreadView.sideStageWidth + spreadView.sideStageWidth * spreadView.sideStageDragProgress }
288− }
288+ }
289− ]
289+ ]
290+ }
290
291
291 transform: [
292 transform: [
292 Rotation {
293 Rotation {