2 import QtQuick.Controls 1.5
\r
6 id: btn_map_direction
\r
10 function settleState() {
\r
11 if(root.st_heading_up){
\r
12 btn_map_direction.state = "NorthUp"
\r
13 car_position_mapitem.state = "NorthUp"
\r
14 root.st_heading_up = false
\r
16 btn_map_direction.state = "HeadingUp"
\r
17 car_position_mapitem.state = "HeadingUp"
\r
18 root.st_heading_up = true
\r
20 map.rotateMapSmooth()
\r
23 onClicked: { settleState() }
\r
29 anchors.verticalCenter: parent.verticalCenter
\r
30 anchors.horizontalCenter: parent.horizontalCenter
\r
31 source: "images/202px-Compass-icon_bb_N.svg.png"
\r
37 PropertyChanges { target: image; source: "images/240px-Compass_icon_NE.svg.png" }
\r
41 PropertyChanges { target: image; source: "images/202px-Compass-icon_bb_N.svg.png" }
\r