-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainView.qml
More file actions
30 lines (28 loc) · 847 Bytes
/
MainView.qml
File metadata and controls
30 lines (28 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import "./GenerateObject.js" as GO
Rectangle {
id:mainView
width: 240
height: 320
color: "Black"
smooth: true
focus: true
Keys.onPressed: {
if(event.key == Qt.Key_Asterisk) {
console.log("Pressed *");
var obj = GO.createObject(mainView,"StatusBar.qml",{});
obj.creationAnimation();
obj.destroyAnimation(obj);
}
if(event.key == Qt.Key_0) {
console.log("Pressed 0");
var popup = GO.createObject(mainView,"Popup.qml",{});
popup.creationAnimation(popup);
//Destroy event will be handled in the Popup.qml only
}
}
// Component.onCompleted: {
// GO.createObject(mainView,"MenuBar.qml",{});
// }
}