Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
0337a5a3
Commit
0337a5a3
authored
Mar 16, 2017
by
Jacob Walser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow resizing pip window
parent
6e388c70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+18
-0
QGCPipable.qml
src/QmlControls/QGCPipable.qml
+28
-0
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
0337a5a3
...
...
@@ -311,6 +311,24 @@ QGCView {
onHideIt
:
{
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
{
...
...
src/QmlControls/QGCPipable.qml
View file @
0337a5a3
...
...
@@ -24,6 +24,8 @@ Item {
signal
activated
()
signal
hideIt
(
bool
state
)
signal
bigger
()
signal
smaller
()
MouseArea
{
anchors.fill
:
parent
...
...
@@ -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
Image
{
id
:
closePIP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment