summaryrefslogtreecommitdiff
path: root/qmapwatchlet/map-metawatch-digital.qml
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-19 17:49:36 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-19 17:49:36 +0200
commit0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e (patch)
treee0033617bfbc158de0eae4700963af976b686d50 /qmapwatchlet/map-metawatch-digital.qml
parentc64d7392c2e2ae51547788252e8c83ce5480fe49 (diff)
downloadsowatch-0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e.tar.gz
sowatch-0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e.zip
preparing new compass watchlet
Diffstat (limited to 'qmapwatchlet/map-metawatch-digital.qml')
-rw-r--r--qmapwatchlet/map-metawatch-digital.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/qmapwatchlet/map-metawatch-digital.qml b/qmapwatchlet/map-metawatch-digital.qml
new file mode 100644
index 0000000..9c054a4
--- /dev/null
+++ b/qmapwatchlet/map-metawatch-digital.qml
@@ -0,0 +1,27 @@
+import QtQuick 1.0
+import QtMobility.location 1.2
+import com.javispedro.sowatch.metawatch 1.0
+import com.javispedro.sowatch.qmap 1.0
+
+MWPage {
+ MapView {
+ id: map
+ anchors.fill: parent;
+ updateEnabled: watch.active
+ updateInterval: 5000;
+ }
+
+ Connections {
+ target: watch
+ onButtonPressed : {
+ switch(button) {
+ case 1:
+ map.zoomLevel -= 1;
+ break;
+ case 2:
+ map.zoomLevel += 1;
+ break;
+ }
+ }
+ }
+}