Commit 0337a5a3 authored by Jacob Walser's avatar Jacob Walser

Allow resizing pip window

parent 6e388c70
...@@ -311,6 +311,24 @@ QGCView { ...@@ -311,6 +311,24 @@ QGCView {
onHideIt: { onHideIt: {
setPipVisibility(!state) setPipVisibility(!state)
} }
onBigger: {
if (_pipSize >= 825) {
return
}
_pipSize += 50
_flightVideoPipControl.width = _pipSize
_flightVideoPipControl.height= _pipSize * (9/16)
}
onSmaller: {
if (_pipSize <= 225) {
return
}
_pipSize -= 50
_flightVideoPipControl.width = _pipSize
_flightVideoPipControl.height= _pipSize * (9/16)
}
} }
Row { Row {
......
...@@ -24,6 +24,8 @@ Item { ...@@ -24,6 +24,8 @@ Item {
signal activated() signal activated()
signal hideIt(bool state) signal hideIt(bool state)
signal bigger()
signal smaller()
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
...@@ -33,6 +35,32 @@ Item { ...@@ -33,6 +35,32 @@ Item {
} }
} }
QGCButton {
id: largerButton
visible: !isHidden
anchors.left: parent.left
anchors.bottom: smallerButton.top
height: 20
width: height
anchors.margins: 5
text: "+"
opacity: 0.5
onClicked: pip.bigger()
}
QGCButton {
id: smallerButton
visible: !isHidden
anchors.left: parent.left
anchors.bottom: closePIP.top
height: 20
width: height
anchors.margins: 5
text: "-"
opacity: 0.5
onClicked: pip.smaller()
}
//-- PIP Corner Indicator //-- PIP Corner Indicator
Image { Image {
id: closePIP id: closePIP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment