summaryrefslogtreecommitdiff
path: root/qmapwatchlet/map-metawatch-digital.qml
blob: 658763626d447c0e9cbb7d6d69e0964f676c6ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import QtQuick 1.0
import QtMobility.location 1.2
import com.javispedro.sowatch.metawatch 1.0
import com.javispedro.sowatch.qmap 1.0

MWPage {
	MWTitle {
		id: title
		z: 1
	}

	MapView {
		id: map
		anchors.fill: parent
		updateEnabled: watch.active
		updateInterval: 5000;
		decolor: true
	}

	Connections {
		target: watch
		onButtonPressed : {
			switch(button) {
			case 1:
				map.zoomLevel -= 1;
				break;
			case 2:
				map.zoomLevel += 1;
				break;
			}
		}
	}
}