summaryrefslogtreecommitdiff
path: root/navit/gui/qml/skins/navit/main.qml
blob: 344dd182d96989c652ddec1f91ab33c7ffde9d54 (plain)
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
31
import Qt 4.7
import "pagenavigation.js" as Navit

Rectangle {
    id: main
    property variant returnPath:[ "test" ]

    width: gui.width; height: gui.height
    color: "Black"

    function pageOpen() {
    	Navit.load("PageMain.qml");
    }

    Component.onCompleted: pageOpen();

    Behavior on opacity {
        NumberAnimation { id: opacityAnimation; duration: 300; alwaysRunToEnd: true }
    }


    Loader {
    	id: pageLoader;
	width: gui.width;
	height: gui.height-cellar.height;
	anchors.horizontalCenter: parent.horizontalCenter;
	anchors.verticalCenter: parent.verticalCenter;
    }

    Cellar {id: cellar;anchors.bottom: main.bottom; anchors.horizontalCenter: main.horizontalCenter; width: main.width }
}