Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.5
- import Sailfish.Silica 1.0
- import QtSensors 5.2
- Page {
- Compass {
- id: compass
- active: true
- skipDuplicates: true
- }
- Image {
- anchors.centerIn: parent
- scale: Math.min(parent.width, parent.height) / Theme.iconSizeMedium
- source: "image://theme/icon-m-capslock"
- rotation: {
- if (!compass.reading) return 0;
- return compass.reading ?
- - compass.reading.azimuth : 0
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement