summaryrefslogtreecommitdiff
path: root/qmapwatchlet/metawatch-digital.qml
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-27 20:22:49 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-27 20:22:49 +0200
commit64662ecc6ea6b5296ea77d83eac6eb1372afac01 (patch)
treec32745b57e9f65c9aff83717ea930de06c853577 /qmapwatchlet/metawatch-digital.qml
parent754d02ae6f8d19e64a36cee970a7e364b5b295de (diff)
downloadsowatch-64662ecc6ea6b5296ea77d83eac6eb1372afac01.tar.gz
sowatch-64662ecc6ea6b5296ea77d83eac6eb1372afac01.zip
new crappy map watchlet
Diffstat (limited to 'qmapwatchlet/metawatch-digital.qml')
-rw-r--r--qmapwatchlet/metawatch-digital.qml36
1 files changed, 36 insertions, 0 deletions
diff --git a/qmapwatchlet/metawatch-digital.qml b/qmapwatchlet/metawatch-digital.qml
new file mode 100644
index 0000000..16206db
--- /dev/null
+++ b/qmapwatchlet/metawatch-digital.qml
@@ -0,0 +1,36 @@
+import QtQuick 1.0
+import QtMobility.location 1.2
+
+Rectangle {
+ width: 96
+ height: 96
+
+ color: "white"
+
+ PositionSource {
+ id: pos
+ updateInterval: 5000
+ active: watch.active
+ }
+
+ Map {
+ id: map
+ anchors.fill: parent;
+ plugin : Plugin { name : "nokia" }
+ center: pos.position.coordinate
+ }
+
+ Connections {
+ target: watch
+ onButtonPressed : {
+ switch(button) {
+ case 1:
+ map.zoomLevel -= 1;
+ break;
+ case 2:
+ map.zoomLevel += 1;
+ break;
+ }
+ }
+ }
+}