summaryrefslogtreecommitdiffstats
path: root/weather-qml/default.qml
diff options
context:
space:
mode:
Diffstat (limited to 'weather-qml/default.qml')
-rw-r--r--weather-qml/default.qml73
1 files changed, 73 insertions, 0 deletions
diff --git a/weather-qml/default.qml b/weather-qml/default.qml
new file mode 100644
index 0000000..64c4ce7
--- /dev/null
+++ b/weather-qml/default.qml
@@ -0,0 +1,73 @@
+import Qt 4.6
+
+Rectangle {
+ id: window
+ width: 360
+ height: 640
+ color: "black"
+
+ property int currentIndex : -1;
+ property bool splashVisible : true
+ property string weatherSource : ""
+
+ property int verticalOffset: -40
+ property real scaleFactorX: window.width / 480.0
+ property real scaleFactorY: window.height / 864.0
+
+ CityModel {
+ id: cityModel
+ }
+
+ ParallaxView {
+ id: view
+ x: -58
+ width: 432
+ height: window.height
+ }
+
+ CityPanel {
+ id: cityPanel
+ anchors.top: parent.top
+ anchors.bottom: bottomBar.top
+
+ onGotoCity: console.log("todo: goto city")
+ }
+
+ Image {
+ id: bottomBar
+ source: "images/bg_bottom_options.png"
+ anchors.bottom: parent.bottom
+ }
+
+ SplashScreen {
+ id: splash
+ anchors.fill: parent
+ visible: true
+ }
+
+ Timer {
+ interval: 1000
+ repeat: false
+ running: true
+ onTriggered: splash.visible = false;
+ }
+
+ Text {
+ id: exitLabel
+ text: "Exit"
+ color: "white"
+ font.family: "Nokia Sans"
+ font.pixelSize: 22
+
+ anchors.fill: bottomBar
+ anchors.rightMargin: 15
+ anchors.leftMargin: window.width / 2
+ verticalAlignment: "AlignVCenter"
+ horizontalAlignment: "AlignRight"
+
+ MouseArea {
+ anchors.fill: parent
+ onClicked: { Qt.quit(); }
+ }
+ }
+}