diff options
Diffstat (limited to 'qmapwatchlet/metawatch-digital.qml')
-rw-r--r-- | qmapwatchlet/metawatch-digital.qml | 36 |
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; + } + } + } +} |