Browse Source

use containsMouse

QGC4.4
Ljung323 4 years ago committed by Don Gagne
parent
commit
bb35a2779a
  1. 4
      src/FlightDisplay/FlyViewVideo.qml

4
src/FlightDisplay/FlyViewVideo.qml

@ -67,18 +67,16 @@ Item { @@ -67,18 +67,16 @@ Item {
QGCLabel {
text: qsTr("Double-click to exit full screen")
font.pointSize: ScreenTools.largeFontPointSize
visible: QGroundControl.videoManager.fullScreen && flyViewVideoMouseArea.isHovered
visible: QGroundControl.videoManager.fullScreen && flyViewVideoMouseArea.containsMouse
anchors.centerIn: parent
}
MouseArea {
id: flyViewVideoMouseArea
property bool isHovered: false
anchors.fill: parent
enabled: pipState.state === pipState.fullState
hoverEnabled: true
onDoubleClicked: QGroundControl.videoManager.fullScreen = !QGroundControl.videoManager.fullScreen
onHoveredChanged: isHovered = !isHovered
}
ProximityRadarVideoView{

Loading…
Cancel
Save