Browse Source

CP - Fix video margins when video is in PIP mode

QGC4.4
Gus Grubba 5 years ago
parent
commit
61cab679ca
  1. 34
      src/FlightDisplay/FlightDisplayView.qml

34
src/FlightDisplay/FlightDisplayView.qml

@ -367,11 +367,11 @@ Item {
name: "pipMode" name: "pipMode"
PropertyChanges { PropertyChanges {
target: _flightVideo target: _flightVideo
anchors.margins: _toolsMargin anchors.margins: ScreenTools.defaultFontPixelHeight
} }
PropertyChanges { PropertyChanges {
target: _flightVideoPipControl target: _flightVideoPipControl
inPopup: false inPopup: false
} }
}, },
State { State {
@ -381,8 +381,8 @@ Item {
anchors.margins: 0 anchors.margins: 0
} }
PropertyChanges { PropertyChanges {
target: _flightVideoPipControl target: _flightVideoPipControl
inPopup: false inPopup: false
} }
}, },
State { State {
@ -396,19 +396,19 @@ Item {
} }
} }
PropertyChanges { PropertyChanges {
target: _flightVideoPipControl target: _flightVideoPipControl
inPopup: true inPopup: true
} }
}, },
State { State {
name: "popup-finished" name: "popup-finished"
ParentChange { ParentChange {
target: _flightVideo target: _flightVideo
parent: videoItem parent: videoItem
x: 0 x: 0
y: 0 y: 0
width: videoItem.width width: videoItem.width
height: videoItem.height height: videoItem.height
} }
}, },
State { State {
@ -420,12 +420,12 @@ Item {
} }
} }
ParentChange { ParentChange {
target: _flightVideo target: _flightVideo
parent: _mapAndVideo parent: _mapAndVideo
} }
PropertyChanges { PropertyChanges {
target: _flightVideoPipControl target: _flightVideoPipControl
inPopup: false inPopup: false
} }
} }
] ]

Loading…
Cancel
Save