9 function setView(view) {
10 if (panel.state == "opened") {
11 if ((flipable.side == Flipable.Front && frontLoader.source != view) || (flipable.side == Flipable.Back && backLoader.source != view)) {
12 flipable.side == Flipable.Front ? backLoader.source = view : frontLoader.source = view
13 flipable.flipped = !flipable.flipped
18 flipable.side == Flipable.Front ? frontLoader.source = view : backLoader.source = view
19 panel.state = "opened"
25 state: deviceRotation.orientation
26 anchors.centerIn: parent
35 property bool flipped: false
39 anchors { fill: parent; leftMargin: 5; rightMargin: 5 }
44 anchors { fill: parent; leftMargin: 5; rightMargin: 5 }
49 origin.x: flipable.width / 2;
50 origin.y: flipable.height / 2
51 axis { x: 0; y: 1; z: 0 }
57 PropertyChanges { target: rotation; angle: 180 }
58 when: flipable.flipped
61 transitions: Transition {
62 NumberAnimation { target: rotation; properties: "angle"; duration: 300 }
82 NumberAnimation { properties: "rotation,heigth,width"; duration: 200 }
102 NumberAnimation { properties: "x"; duration: 200 }