1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

LP-29 add "opaque" property to PfdView

This commit is contained in:
Philippe Renon 2016-03-27 00:46:22 +01:00
parent 444c126dab
commit ff1da598b2
3 changed files with 5 additions and 3 deletions

View File

@ -22,5 +22,6 @@ import QtQuick 2.4
import "pfd"
PfdView {
opaque: false
worldFile: "PfdTerrainWorld.qml"
}

View File

@ -62,7 +62,7 @@ Item {
sceneSize: info.sceneSize
elementName: "info-bg"
width: parent.width
opacity: pfdContext.terrainEnabled ? 0.3 : 1
opacity: opaque ? 0.3 : 1
}
//
@ -452,7 +452,7 @@ Item {
x: Math.floor(scaledBounds.x * sceneItem.width)
y: Math.floor(scaledBounds.y * sceneItem.height)
opacity: pfdContext.terrainEnabled ? 0.6 : 1
opacity: opaque ? 0.6 : 1
states: State {
name: "fading"

View File

@ -23,7 +23,8 @@ Rectangle {
color: "#515151"
property string worldFile: "PfdSimpleWorld.qml"
property string worldFile: "PfdSimpleWorld.qml"
property bool opaque: true
SvgElementImage {
id: background