1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

GCS- Fixes from Dmytro to new PFD qml file.

This commit is contained in:
PT_Dreamer 2012-08-01 09:47:11 +01:00
parent 4f2522cd0a
commit faee578010

View File

@ -32,9 +32,13 @@ Rectangle {
source: "image://svg/pfd.svg!rollscale"
sourceSize: background.sourceSize
smooth: true
transformOrigin: Item.Center
rotation: -AttitudeActual.Roll
anchors.centerIn: parent
//rotate it around the center of scene
transform: Rotation {
angle: -AttitudeActual.Roll
origin.x : sceneItem.width/2 - x
origin.y : sceneItem.height/2 - y
}
}
Image {