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
0cba4b95
Commit
0cba4b95
authored
Nov 13, 2015
by
Gus Grubba
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2211 from dogmaphobic/limitGadgetSize
Limit fly view instrument panel size.
parents
e97c3c36
b49328ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+12
-1
No files found.
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
0cba4b95
...
...
@@ -41,6 +41,16 @@ Item {
property
bool
_isInstrumentVisible
:
QGroundControl
.
loadBoolGlobalSetting
(
_InstrumentVisibleKey
,
true
)
function
getGadgetWidth
()
{
if
(
ScreenTools
.
isMobile
)
{
if
(
ScreenTools
.
isTinyScreen
)
return
mainWindow
.
width
*
0.2
return
mainWindow
.
width
*
0.15
}
var
w
=
mainWindow
.
width
*
0.15
return
Math
.
min
(
w
,
200
)
}
ExclusiveGroup
{
id
:
_dropButtonsExclusiveGroup
}
...
...
@@ -78,11 +88,12 @@ Item {
//-- Instrument Panel
QGCInstrumentWidget
{
id
:
instrumentGadget
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.right
:
parent
.
right
anchors.verticalCenter
:
parent
.
verticalCenter
visible
:
_isInstrumentVisible
size
:
ScreenTools
.
isTinyScreen
?
mainWindow
.
width
*
0.2
:
mainWindow
.
width
*
0.15
size
:
getGadgetWidth
()
active
:
_activeVehicle
!=
null
heading
:
_heading
rollAngle
:
_roll
...
...
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