diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-14 01:13:41 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-14 01:13:41 +0200 |
commit | 80c58c124caf17f670d8efc120f5ae4bfd9aa09f (patch) | |
tree | c6d036f06437e54f80afd65e1a700a018cab994b /qmapwatchlet/map-liveview.qml | |
parent | c3392e5d539e87f4720b3d107aaefffdc9579f4d (diff) | |
download | sowatch-80c58c124caf17f670d8efc120f5ae4bfd9aa09f.tar.gz sowatch-80c58c124caf17f670d8efc120f5ae4bfd9aa09f.zip |
added liveview watchlet menu (API break)
Diffstat (limited to 'qmapwatchlet/map-liveview.qml')
-rw-r--r-- | qmapwatchlet/map-liveview.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/qmapwatchlet/map-liveview.qml b/qmapwatchlet/map-liveview.qml new file mode 100644 index 0000000..e6ab4d4 --- /dev/null +++ b/qmapwatchlet/map-liveview.qml @@ -0,0 +1,26 @@ +import QtQuick 1.0 +import QtMobility.location 1.2 +import com.javispedro.sowatch.qmap 1.0 + +Item { + 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; + } + } + } +} |