blob: 071653acfcb81148b358ed9c2602aac2759d0d8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import Qt 4.7
Rectangle {
id: page
function pageOpen(command) {
if ( command=="menu") {
gui.returnSource="";
Loader {source: "main.qml"};
}
if (command=="quit") {
navit.quit();
}
}
Component.onCompleted: pageOpen(gui.commandFunction);
Text { id: myText; anchors.centerIn: parent; text: "Hi, i'm Navit!"; color: "Black"; font.pointSize: gui.height/32 }
}
|