3 import com.nokia.meego 1.1
8 property int mode: settings.mode
9 property Camera cam: null
10 property Item dimmer: null
11 property alias animationRunning: animation.running
21 NumberAnimation { target: dimmer; property: "opacity"; from: 0; to: 1; duration: 250; alwaysRunToEnd: true }
23 ScriptAction { script: animation.setMode(); }
24 PauseAnimation { duration: 100 }
27 NumberAnimation { target: dimmer; property: "opacity"; from: 1; to: 0; duration: 250; alwaysRunToEnd: true }
34 function set(newMode) {
35 if (cam.mode == newMode) {
39 animation.mode = newMode;