summaryrefslogtreecommitdiff
path: root/navit/gui/qml/skins/navit/command.js
blob: bcf0cf746848ebc0efb8c757d73c20b9e8e1e1c8 (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 }
}