aboutsummaryrefslogtreecommitdiff
path: root/src/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.qml')
-rw-r--r--src/main.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.qml b/src/main.qml
index 49abcb6..acca47a 100644
--- a/src/main.qml
+++ b/src/main.qml
@@ -2,6 +2,8 @@ import QtQuick 2.0
import org.asteroid.controls 1.0
import QtPositioning 5.15
import QtLocation 5.15
+import Nemo.Configuration 1.0
+import QtSensors 5.3
Application {
centerColor: "#6e90e9"
@@ -20,11 +22,20 @@ Application {
PositionSource {
id: positionProvider
}
+ Compass {
+ id: compass
+ active: enableCompass.value
+ }
LayerStack {
id: pageStack
anchors.fill: parent
firstPage: mainMapView
}
+ ConfigurationValue {
+ id: enableCompass
+ key: "/map/enableCompass"
+ defaultValue: true
+ }
Component {
id: mainMapView