From 64662ecc6ea6b5296ea77d83eac6eb1372afac01 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 27 Sep 2011 20:22:49 +0200 Subject: new crappy map watchlet --- qmapwatchlet/metawatch-digital.qml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 qmapwatchlet/metawatch-digital.qml (limited to 'qmapwatchlet/metawatch-digital.qml') 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; + } + } + } +} -- cgit v1.2.3