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
48b6e1ef
Commit
48b6e1ef
authored
Jun 22, 2018
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Settings page which works at any size
parent
cbe81ce1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
533 additions
and
659 deletions
+533
-659
App.SettingsGroup.json
src/Settings/App.SettingsGroup.json
+2
-2
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+531
-657
No files found.
src/Settings/App.SettingsGroup.json
View file @
48b6e1ef
...
...
@@ -72,8 +72,8 @@
"type"
:
"double"
,
"defaultValue"
:
50.0
,
"min"
:
0.0
,
"units"
:
"m
eters
"
,
"decimalPlaces"
:
2
"units"
:
"m"
,
"decimalPlaces"
:
1
},
{
"name"
:
"PromptFLightDataSave"
,
...
...
src/ui/preferences/GeneralSettings.qml
View file @
48b6e1ef
...
...
@@ -37,11 +37,13 @@ QGCView {
property
Fact
_userBrandImageIndoor
:
QGroundControl
.
settingsManager
.
brandImageSettings
.
userBrandImageIndoor
property
Fact
_userBrandImageOutdoor
:
QGroundControl
.
settingsManager
.
brandImageSettings
.
userBrandImageOutdoor
property
real
_labelWidth
:
ScreenTools
.
defaultFontPixelWidth
*
20
property
real
_editFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
30
property
real
_comboFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
25
property
real
_valueFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
8
property
Fact
_mapProvider
:
QGroundControl
.
settingsManager
.
flightMapSettings
.
mapProvider
property
Fact
_mapType
:
QGroundControl
.
settingsManager
.
flightMapSettings
.
mapType
property
Fact
_followTarget
:
QGroundControl
.
settingsManager
.
appSettings
.
followTarget
property
real
_panelWidth
:
_qgcView
.
width
*
_internalWidthRatio
property
real
_margins
:
ScreenTools
.
defaultFontPixelWidth
readonly
property
real
_internalWidthRatio
:
0.8
...
...
@@ -52,190 +54,118 @@ QGCView {
QGCViewPanel
{
id
:
panel
anchors.fill
:
parent
QGCFlickable
{
clip
:
true
anchors.fill
:
parent
contentHeight
:
settingsColumn
.
height
contentWidth
:
settingsColumn
.
width
Column
{
id
:
settingsColumn
width
:
_qgcView
.
width
spacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
contentHeight
:
outerItem
.
height
contentWidth
:
outerItem
.
width
//-----------------------------------------------------------------
//-- Units
Item
{
width
:
_panelWidth
height
:
unitLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
id
:
outerItem
width
:
Math
.
max
(
panel
.
width
,
settingsColumn
.
width
)
height
:
settingsColumn
.
height
ColumnLayout
{
id
:
settingsColumn
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
unitsSettings
.
visible
QGCLabel
{
id
:
unit
Label
id
:
unitsSection
Label
text
:
qsTr
(
"
Units (Requires Restart)
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
visible
:
QGroundControl
.
settingsManager
.
unitsSettings
.
visible
}
Rectangle
{
height
:
unitsCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_panelWidth
Layout.preferredHeight
:
unitsGrid
.
height
+
(
_margins
*
2
)
Layout.preferredWidth
:
unitsGrid
.
width
+
(
_margins
*
2
)
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
visible
:
miscSectionLabel
.
visible
Layout.fillWidth
:
true
GridLayout
{
id
:
unitsGrid
anchors.topMargin
:
_margins
anchors.top
:
parent
.
top
Layout.fillWidth
:
false
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
unitsSettings
.
visible
Column
{
id
:
unitsCol
spacing
:
ScreenTools
.
defaultFontPixelWidth
anchors.centerIn
:
parent
flow
:
GridLayout
.
TopToBottom
rows
:
4
Repeater
{
id
:
unitsRepeater
model
:
[
QGroundControl
.
settingsManager
.
unitsSettings
.
distanceUnits
,
QGroundControl
.
settingsManager
.
unitsSettings
.
areaUnits
,
QGroundControl
.
settingsManager
.
unitsSettings
.
speedUnits
,
QGroundControl
.
settingsManager
.
unitsSettings
.
temperatureUnits
]
property
var
names
:
[
qsTr
(
"
Distance:
"
),
qsTr
(
"
Area:
"
),
qsTr
(
"
Speed:
"
),
qsTr
(
"
Temperature:
"
)
]
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
modelData
.
visible
QGCLabel
{
width
:
_labelWidth
anchors.baseline
:
factCombo
.
baseline
text
:
unitsRepeater
.
names
[
index
]
model
:
[
qsTr
(
"
Distance
"
),
qsTr
(
"
Area
"
),
qsTr
(
"
Speed
"
),
qsTr
(
"
Temperature
"
)
]
QGCLabel
{
text
:
modelData
}
}
Repeater
{
model
:
[
QGroundControl
.
settingsManager
.
unitsSettings
.
distanceUnits
,
QGroundControl
.
settingsManager
.
unitsSettings
.
areaUnits
,
QGroundControl
.
settingsManager
.
unitsSettings
.
speedUnits
,
QGroundControl
.
settingsManager
.
unitsSettings
.
temperatureUnits
]
FactComboBox
{
id
:
factCombo
width
:
_editFieldWidth
Layout.preferredWidth
:
_comboFieldWidth
fact
:
modelData
indexModel
:
false
}
}
}
}
}
//-----------------------------------------------------------------
//-- Miscellaneous
Item
{
width
:
_panelWidth
height
:
miscLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
visible
Item
{
width
:
1
;
height
:
_margins
}
QGCLabel
{
id
:
misc
Label
id
:
miscSection
Label
text
:
qsTr
(
"
Miscellaneous
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
visible
}
Rectangle
{
height
:
miscCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_panelWidth
Layout.preferredWidth
:
Math
.
max
(
comboGrid
.
width
,
miscCol
.
width
)
+
(
_margins
*
2
)
Layout.preferredHeight
:
(
pathRow
.
visible
?
pathRow
.
y
+
pathRow
.
height
:
miscColItem
.
y
+
miscColItem
.
height
)
+
(
_margins
*
2
)
Layout.fillWidth
:
true
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
visible
:
miscSectionLabel
.
visible
Item
{
id
:
comboGridItem
anchors.margins
:
_margins
anchors.top
:
parent
.
top
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
comboGrid
.
height
GridLayout
{
id
:
comboGrid
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
visible
Column
{
id
:
miscCol
spacing
:
ScreenTools
.
defaultFontPixelWidth
anchors.centerIn
:
parent
//-----------------------------------------------------------------
//-- Base UI Font Point Size
Row
{
visible
:
_appFontPointSize
?
_appFontPointSize
.
visible
:
false
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
id
:
baseFontLabel
text
:
qsTr
(
"
Font Size:
"
)
anchors.verticalCenter
:
parent
.
verticalCenter
}
Row
{
id
:
baseFontRow
spacing
:
ScreenTools
.
defaultFontPixelWidth
/
2
anchors.verticalCenter
:
parent
.
verticalCenter
QGCButton
{
id
:
decrementButton
width
:
height
height
:
baseFontEdit
.
height
text
:
"
-
"
onClicked
:
{
if
(
_appFontPointSize
.
value
>
_appFontPointSize
.
min
)
{
_appFontPointSize
.
value
=
_appFontPointSize
.
value
-
1
}
}
}
FactTextField
{
id
:
baseFontEdit
width
:
_editFieldWidth
-
(
decrementButton
.
width
*
2
)
-
(
baseFontRow
.
spacing
*
2
)
fact
:
QGroundControl
.
settingsManager
.
appSettings
.
appFontPointSize
}
QGCButton
{
width
:
height
height
:
baseFontEdit
.
height
text
:
"
+
"
onClicked
:
{
if
(
_appFontPointSize
.
value
<
_appFontPointSize
.
max
)
{
_appFontPointSize
.
value
=
_appFontPointSize
.
value
+
1
}
}
}
}
columns
:
2
QGCLabel
{
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
_requiresRestart
}
}
//-----------------------------------------------------------------
//-- Palette Styles
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
text
:
qsTr
(
"
Color Scheme
"
)
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
indoorPalette
.
visible
QGCLabel
{
text
:
qsTr
(
"
Color Scheme:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
}
FactComboBox
{
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
QGroundControl
.
settingsManager
.
appSettings
.
indoorPalette
indexModel
:
false
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
indoorPalette
.
visible
}
//-----------------------------------------------------------------
//-- Map Provider
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_mapProvider
.
visible
QGCLabel
{
text
:
qsTr
(
"
Map Provider:
"
)
text
:
qsTr
(
"
Map Provider
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
visible
:
_mapProvider
.
visible
}
FactComboBox
{
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
_mapProvider
indexModel
:
false
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
_mapProvider
.
visible
}
//-----------------------------------------------------------------
//-- Map Type
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_mapType
.
visible
QGCLabel
{
text
:
qsTr
(
"
Map Type:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Map Type
"
)
visible
:
_mapType
.
visible
}
FactComboBox
{
id
:
mapTypes
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
_mapType
indexModel
:
false
anchors.verticalCenter
:
parent
.
verticalCenter
visible
:
_mapType
.
visible
Connections
{
target
:
QGroundControl
.
settingsManager
.
flightMapSettings
onMapTypeChanged
:
{
...
...
@@ -243,34 +173,79 @@ QGCView {
}
}
}
}
//-----------------------------------------------------------------
//-- Follow Target
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_followTarget
.
visible
QGCLabel
{
text
:
qsTr
(
"
Stream GCS Position:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Stream GCS Position
"
)
visible
:
_followTarget
.
visible
}
FactComboBox
{
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
_followTarget
indexModel
:
false
anchors.verticalCenter
:
parent
.
verticalCenter
visible
:
_followTarget
.
visible
}
}
//-----------------------------------------------------------------
//-- Audio preferences
}
Item
{
id
:
miscColItem
anchors.margins
:
_margins
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
comboGridItem
.
bottom
height
:
miscCol
.
height
ColumnLayout
{
id
:
miscCol
anchors.horizontalCenter
:
parent
.
horizontalCenter
spacing
:
_margins
RowLayout
{
Layout.fillWidth
:
false
Layout.alignment
:
Qt
.
AlignHCenter
visible
:
_appFontPointSize
?
_appFontPointSize
.
visible
:
false
QGCLabel
{
text
:
qsTr
(
"
Font Size:
"
)
}
QGCButton
{
Layout.preferredWidth
:
height
Layout.preferredHeight
:
baseFontEdit
.
height
text
:
"
-
"
onClicked
:
{
if
(
_appFontPointSize
.
value
>
_appFontPointSize
.
min
)
{
_appFontPointSize
.
value
=
_appFontPointSize
.
value
-
1
}
}
}
FactTextField
{
id
:
baseFontEdit
Layout.preferredWidth
:
_valueFieldWidth
fact
:
QGroundControl
.
settingsManager
.
appSettings
.
appFontPointSize
}
QGCButton
{
Layout.preferredWidth
:
height
Layout.preferredHeight
:
baseFontEdit
.
height
text
:
"
+
"
onClicked
:
{
if
(
_appFontPointSize
.
value
<
_appFontPointSize
.
max
)
{
_appFontPointSize
.
value
=
_appFontPointSize
.
value
+
1
}
}
}
QGCLabel
{
text
:
_requiresRestart
}
}
FactCheckBox
{
text
:
qsTr
(
"
Mute all audio output
"
)
fact
:
_audioMuted
visible
:
_audioMuted
.
visible
property
Fact
_audioMuted
:
QGroundControl
.
settingsManager
.
appSettings
.
audioMuted
}
//-----------------------------------------------------------------
//-- Save telemetry log
FactCheckBox
{
id
:
promptSaveLog
text
:
qsTr
(
"
Save telemetry log after each flight
"
)
...
...
@@ -278,8 +253,7 @@ QGCView {
visible
:
_telemetrySave
.
visible
property
Fact
_telemetrySave
:
QGroundControl
.
settingsManager
.
appSettings
.
telemetrySave
}
//-----------------------------------------------------------------
//-- Save even if not armed
FactCheckBox
{
text
:
qsTr
(
"
Save telemetry log even if vehicle was not armed
"
)
fact
:
_telemetrySaveNotArmed
...
...
@@ -287,8 +261,31 @@ QGCView {
enabled
:
promptSaveLog
.
checked
property
Fact
_telemetrySaveNotArmed
:
QGroundControl
.
settingsManager
.
appSettings
.
telemetrySaveNotArmed
}
//-----------------------------------------------------------------
//-- Clear settings
FactCheckBox
{
text
:
qsTr
(
"
Use preflight checklist
"
)
fact
:
_useChecklist
visible
:
_useChecklist
.
visible
property
Fact
_useChecklist
:
QGroundControl
.
settingsManager
.
appSettings
.
useChecklist
}
FactCheckBox
{
text
:
qsTr
(
"
Virtual Joystick
"
)
visible
:
_virtualJoystick
.
visible
fact
:
_virtualJoystick
property
Fact
_virtualJoystick
:
QGroundControl
.
settingsManager
.
appSettings
.
virtualJoystick
}
FactCheckBox
{
text
:
qsTr
(
"
AutoLoad Missions
"
)
fact
:
_autoLoad
visible
:
_autoLoad
.
visible
property
Fact
_autoLoad
:
QGroundControl
.
settingsManager
.
appSettings
.
autoLoadMissions
}
QGCCheckBox
{
id
:
clearCheck
text
:
qsTr
(
"
Clear all settings on next start
"
)
...
...
@@ -313,17 +310,14 @@ QGCView {
}
}
}
//-----------------------------------------------------------------
//-- Battery talker
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
RowLayout
{
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
batteryPercentRemainingAnnounce
.
visible
QGCCheckBox
{
id
:
announcePercentCheckbox
text
:
qsTr
(
"
Announce battery lower than:
"
)
text
:
qsTr
(
"
Announce battery lower than
"
)
checked
:
_percentRemainingAnnounce
.
value
!==
0
width
:
(
_labelWidth
+
_editFieldWidth
)
*
0.65
anchors.verticalCenter
:
parent
.
verticalCenter
onClicked
:
{
if
(
checked
)
{
_percentRemainingAnnounce
.
value
=
_percentRemainingAnnounce
.
defaultValueString
...
...
@@ -333,75 +327,49 @@ QGCView {
}
}
FactTextField
{
id
:
announcePercent
fact
:
_percentRemainingAnnounce
width
:
(
_labelWidth
+
_editFieldWidth
)
*
0.35
Layout.preferredWidth
:
_valueFieldWidth
enabled
:
announcePercentCheckbox
.
checked
anchors.verticalCenter
:
parent
.
verticalCenter
}
}
//-----------------------------------------------------------------
//-- Virtual joystick settings
FactCheckBox
{
text
:
qsTr
(
"
Virtual Joystick
"
)
visible
:
_virtualJoystick
.
visible
fact
:
_virtualJoystick
property
Fact
_virtualJoystick
:
QGroundControl
.
settingsManager
.
appSettings
.
virtualJoystick
}
//-----------------------------------------------------------------
//-- Default mission item altitude
Row
{
RowLayout
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
defaultMissionItemAltitude
.
visible
QGCLabel
{
anchors.verticalCenter
:
parent
.
verticalCenter
width
:
(
_labelWidth
+
_editFieldWidth
)
*
0.65
text
:
qsTr
(
"
Default Mission Altitude:
"
)
}
QGCLabel
{
text
:
qsTr
(
"
Default Mission Altitude
"
)
}
FactTextField
{
id
:
defaultItemAltitudeField
width
:
(
_labelWidth
+
_editFieldWidth
)
*
0.35
Layout.preferredWidth
:
_valueFieldWidth
fact
:
QGroundControl
.
settingsManager
.
appSettings
.
defaultMissionItemAltitude
anchors.verticalCenter
:
parent
.
verticalCenter
}
}
//-----------------------------------------------------------------
//-- Mission AutoLoad
FactCheckBox
{
text
:
qsTr
(
"
AutoLoad Missions
"
)
fact
:
_autoLoad
visible
:
_autoLoad
.
visible
property
Fact
_autoLoad
:
QGroundControl
.
settingsManager
.
appSettings
.
autoLoadMissions
}
}
//-----------------------------------------------------------------
//-- Save path
RowLayout
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
id
:
pathRow
anchors.margins
:
_margins
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.top
:
miscColItem
.
bottom
visible
:
_savePath
.
visible
&&
!
ScreenTools
.
isMobile
QGCLabel
{
Layout.alignment
:
Qt
.
AlignVCenter
text
:
qsTr
(
"
File Save Path:
"
)
}
QGCLabel
{
Layout.alignment
:
Qt
.
AlignVCenter
Layout.maximumWidth
:
_panelWidth
*
0.5
elide
:
Text
.
ElideMiddle
QGCLabel
{
text
:
qsTr
(
"
Application Load/Save Path
"
)
}
QGCTextField
{
Layout.fillWidth
:
true
readOnly
:
true
text
:
_savePath
.
rawValue
===
""
?
qsTr
(
"
<not set>
"
)
:
_savePath
.
value
}
QGCButton
{
id
:
savePathBrowse
text
:
"
Browse
"
text
:
qsTr
(
"
Browse
"
)
onClicked
:
savePathBrowseDialog
.
openForLoad
()
QGCFileDialog
{
id
:
savePathBrowseDialog
qgcView
:
_qgcView
title
:
qsTr
(
"
Choose the location to save
files:
"
)
title
:
qsTr
(
"
Choose the location to save
/load files
"
)
folder
:
_savePath
.
rawValue
selectExisting
:
true
selectFolder
:
true
...
...
@@ -410,92 +378,67 @@ QGCView {
}
}
}
//-----------------------------------------------------------------
//-- Checklist Settings
FactCheckBox
{
text
:
qsTr
(
"
Use preflight checklist
"
)
fact
:
_useChecklist
visible
:
_useChecklist
.
visible
property
Fact
_useChecklist
:
QGroundControl
.
settingsManager
.
appSettings
.
useChecklist
}
}
}
//-----------------------------------------------------------------
//-- RTK GPS
Item
{
width
:
_panelWidth
height
:
unitLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
rtkSettings
.
visible
Item
{
width
:
1
;
height
:
_margins
}
QGCLabel
{
id
:
rtk
Label
id
:
rtkSection
Label
text
:
qsTr
(
"
RTK GPS (Requires Restart)
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
visible
:
QGroundControl
.
settingsManager
.
rtkSettings
.
visible
}
Rectangle
{
height
:
rtkGrid
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_panelWidth
Layout.preferredHeight
:
rtkGrid
.
height
+
(
_margins
*
2
)
Layout.preferredWidth
:
rtkGrid
.
width
+
(
_margins
*
2
)
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
rtkSettings
.
visible
visible
:
rtkSectionLabel
.
visible
Layout.fillWidth
:
true
GridLayout
{
id
:
rtkGrid
anchors.centerIn
:
parent
anchors.topMargin
:
_margins
anchors.top
:
parent
.
top
Layout.fillWidth
:
false
anchors.horizontalCenter
:
parent
.
horizontalCenter
columns
:
2
rowSpacing
:
ScreenTools
.
defaultFontPixelWidth
columnSpacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
text
:
qsTr
(
"
Survey in accuracy:
"
)
}
QGCLabel
{
text
:
qsTr
(
"
Survey in accuracy
"
)
}
FactTextField
{
Layout.preferredWidth
:
_valueFieldWidth
fact
:
QGroundControl
.
settingsManager
.
rtkSettings
.
surveyInAccuracyLimit
}
QGCLabel
{
text
:
qsTr
(
"
Minimum observation duration:
"
)
}
QGCLabel
{
text
:
qsTr
(
"
Minimum observation duration
"
)
}
FactTextField
{
Layout.preferredWidth
:
_valueFieldWidth
fact
:
QGroundControl
.
settingsManager
.
rtkSettings
.
surveyInMinObservationDuration
}
}
}
//-----------------------------------------------------------------
//-- Autoconnect settings
Item
{
width
:
_panelWidth
height
:
autoConnectLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
autoConnectSettings
.
visible
Item
{
width
:
1
;
height
:
_margins
}
QGCLabel
{
id
:
autoConnectLabel
text
:
qsTr
(
"
AutoConnect to the following devices:
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
id
:
autoConnectSectionLabel
text
:
qsTr
(
"
AutoConnect to the following devices
"
)
visible
:
QGroundControl
.
settingsManager
.
autoConnectSettings
.
visible
}
Rectangle
{
height
:
autoConnectCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_panelWidth
Layout.preferredWidth
:
autoConnectCol
.
width
+
(
_margins
*
2
)
Layout.preferredHeight
:
autoConnectCol
.
height
+
(
_margins
*
2
)
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
autoConnectSettings
.
visible
visible
:
autoConnectSectionLabel
.
visible
Layout.fillWidth
:
true
Column
{
ColumnLayout
{
id
:
autoConnectCol
spacing
:
ScreenTools
.
defaultFontPixelWidth
*
2
anchors.centerIn
:
parent
anchors.margins
:
_margins
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
spacing
:
_margins
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
*
2
RowLayout
{
spacing
:
_margins
Repeater
{
id
:
autoConnectRepeater
...
...
@@ -517,22 +460,21 @@ QGCView {
}
}
Row
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
spacing
:
ScreenTools
.
defaultFontPixelWidth
GridLayout
{
Layout.fillWidth
:
false
Layout.alignment
:
Qt
.
AlignHCenter
columns
:
2
visible
:
!
ScreenTools
.
isMobile
&&
QGroundControl
.
settingsManager
.
autoConnectSettings
.
autoConnectNmeaPort
.
visible
&&
QGroundControl
.
settingsManager
.
autoConnectSettings
.
autoConnectNmeaBaud
.
visible
QGCLabel
{
anchors.baseline
:
nmeaPortCombo
.
baseline
text
:
qsTr
(
"
NMEA GPS Device:
"
)
width
:
_labelWidth
text
:
qsTr
(
"
NMEA GPS Device
"
)
}
QGCComboBox
{
id
:
nmeaPortCombo
width
:
_editFieldWidth
Layout.preferredWidth
:
_comboFieldWidth
model
:
ListModel
{
ListElement
{
text
:
"
disabled
"
}
}
...
...
@@ -550,22 +492,13 @@ QGCView {
nmeaPortCombo
.
currentIndex
=
index
;
}
}
}
Row
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
!
ScreenTools
.
isMobile
&&
QGroundControl
.
settingsManager
.
autoConnectSettings
.
autoConnectNmeaPort
.
visible
&&
QGroundControl
.
settingsManager
.
autoConnectSettings
.
autoConnectNmeaBaud
.
visible
QGCLabel
{
anchors.baseline
:
nmeaBaudCombo
.
baseline
text
:
qsTr
(
"
NMEA GPS Baudrate:
"
)
width
:
_labelWidth
text
:
qsTr
(
"
NMEA GPS Baudrate
"
)
}
QGCComboBox
{
id
:
nmeaBaudCombo
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
model
:
[
4800
,
9600
,
19200
,
38400
,
57600
,
115200
]
onActivated
:
{
...
...
@@ -582,242 +515,186 @@ QGCView {
}
}
//-----------------------------------------------------------------
//-- Video Source
Item
{
width
:
_panelWidth
height
:
videoLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
visible
Item
{
width
:
1
;
height
:
_margins
}
QGCLabel
{
id
:
video
Label
id
:
videoSection
Label
text
:
qsTr
(
"
Video
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
visible
}
Rectangle
{
height
:
videoCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_panelWidth
Layout.preferredWidth
:
videoGrid
.
width
+
(
_margins
*
2
)
Layout.preferredHeight
:
videoGrid
.
height
+
(
_margins
*
2
)
Layout.fillWidth
:
true
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
visible
visible
:
videoSectionLabel
.
visible
Column
{
id
:
videoCol
spacing
:
ScreenTools
.
defaultFontPixelWidth
anchors.centerIn
:
parent
GridLayout
{
id
:
videoGrid
anchors.margins
:
_margins
anchors.top
:
parent
.
top
anchors.horizontalCenter
:
parent
.
horizontalCenter
Layout.fillWidth
:
false
Layout.fillHeight
:
false
columns
:
2
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
videoSource
.
visible
QGCLabel
{
text
:
qsTr
(
"
Video Source:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Video Source
"
)
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
videoSource
.
visible
}
FactComboBox
{
id
:
videoSource
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
indexModel
:
false
fact
:
QGroundControl
.
settingsManager
.
videoSettings
.
videoSource
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
videoSource
.
visible
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
udpPort
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
===
1
QGCLabel
{
text
:
qsTr
(
"
UDP Port:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
UDP Port
"
)
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
udpPort
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
===
1
}
FactTextField
{
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
QGroundControl
.
settingsManager
.
videoSettings
.
udpPort
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
udpPort
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
===
1
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
rtspUrl
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
===
2
QGCLabel
{
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
RTSP URL:
"
)
width
:
_labelWidth
text
:
qsTr
(
"
RTSP URL
"
)
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
rtspUrl
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
===
2
}
FactTextField
{
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
QGroundControl
.
settingsManager
.
videoSettings
.
rtspUrl
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
rtspUrl
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
===
2
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
tcpUrl
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
===
3
QGCLabel
{
text
:
qsTr
(
"
TCP URL:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
TCP URL
"
)
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
tcpUrl
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
===
3
}
FactTextField
{
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
QGroundControl
.
settingsManager
.
videoSettings
.
tcpUrl
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
tcpUrl
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
===
3
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
3
&&
QGroundControl
.
settingsManager
.
videoSettings
.
aspectRatio
.
visible
QGCLabel
{
text
:
qsTr
(
"
Aspect Ratio:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Aspect Ratio
"
)
visible
:
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
3
&&
QGroundControl
.
settingsManager
.
videoSettings
.
aspectRatio
.
visible
}
FactTextField
{
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
QGroundControl
.
settingsManager
.
videoSettings
.
aspectRatio
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
3
&&
QGroundControl
.
settingsManager
.
videoSettings
.
aspectRatio
.
visible
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
3
&&
QGroundControl
.
settingsManager
.
videoSettings
.
gridLines
.
visible
QGCLabel
{
text
:
qsTr
(
"
Disable When Disarmed:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Disable When Disarmed
"
)
visible
:
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
3
&&
QGroundControl
.
settingsManager
.
videoSettings
.
gridLines
.
visible
}
FactCheckBox
{
text
:
""
fact
:
QGroundControl
.
settingsManager
.
videoSettings
.
disableWhenDisarmed
anchors.verticalCenter
:
parent
.
verticalCenter
visible
:
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
3
&&
QGroundControl
.
settingsManager
.
videoSettings
.
gridLines
.
visible
}
}
}
}
// Video Source - Rectangle
//-----------------------------------------------------------------
//-- Video Source
Item
{
width
:
_panelWidth
height
:
videoRecLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
visible
Item
{
width
:
1
;
height
:
_margins
}
QGCLabel
{
id
:
videoRec
Label
id
:
videoRecSection
Label
text
:
qsTr
(
"
Video Recording
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
visible
&&
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
4
}
Rectangle
{
height
:
videoRecCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_panelWidth
Layout.preferredWidth
:
videoRecCol
.
width
+
(
_margins
*
2
)
Layout.preferredHeight
:
videoRecCol
.
height
+
(
_margins
*
2
)
Layout.fillWidth
:
true
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
visible
visible
:
videoRecSectionLabel
.
visible
Column
{
GridLayout
{
id
:
videoRecCol
spacing
:
ScreenTools
.
defaultFontPixelWidth
anchors.centerIn
:
parent
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
4
&&
QGroundControl
.
settingsManager
.
videoSettings
.
enableStorageLimit
.
visible
anchors.margins
:
_margins
anchors.top
:
parent
.
top
anchors.horizontalCenter
:
parent
.
horizontalCenter
Layout.fillWidth
:
false
columns
:
2
QGCLabel
{
text
:
qsTr
(
"
Auto-Delete Files:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Auto-Delete Files
"
)
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
enableStorageLimit
.
visible
}
FactCheckBox
{
text
:
""
fact
:
QGroundControl
.
settingsManager
.
videoSettings
.
enableStorageLimit
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
enableStorageLimit
.
visible
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
4
&&
QGroundControl
.
settingsManager
.
videoSettings
.
maxVideoSize
.
visible
&&
QGroundControl
.
settingsManager
.
videoSettings
.
enableStorageLimit
.
value
QGCLabel
{
text
:
qsTr
(
"
Max Storage Usage:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Max Storage Usage
"
)
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
maxVideoSize
.
visible
&&
QGroundControl
.
settingsManager
.
videoSettings
.
enableStorageLimit
.
value
}
FactTextField
{
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
QGroundControl
.
settingsManager
.
videoSettings
.
maxVideoSize
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
maxVideoSize
.
visible
&&
QGroundControl
.
settingsManager
.
videoSettings
.
enableStorageLimit
.
value
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
videoManager
.
isGStreamer
&&
videoSource
.
currentIndex
&&
videoSource
.
currentIndex
<
4
&&
QGroundControl
.
settingsManager
.
videoSettings
.
recordingFormat
.
visible
QGCLabel
{
text
:
qsTr
(
"
Video File Format:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Video File Format
"
)
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
recordingFormat
.
visible
}
FactComboBox
{
width
:
_edit
FieldWidth
Layout.preferredWidth
:
_combo
FieldWidth
fact
:
QGroundControl
.
settingsManager
.
videoSettings
.
recordingFormat
anchors.verticalCenter
:
parent
.
verticalCenter
}
visible
:
QGroundControl
.
settingsManager
.
videoSettings
.
recordingFormat
.
visible
}
}
}
//-----------------------------------------------------------------
//-- Custom Brand Image
Item
{
width
:
_panelWidth
height
:
userBrandImageLabel
.
height
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
brandImageSettings
.
visible
&&
!
ScreenTools
.
isMobile
Item
{
width
:
1
;
height
:
_margins
;
visible
:
videoRecSectionLabel
.
visible
}
QGCLabel
{
id
:
userBrandImage
Label
id
:
brandImageSection
Label
text
:
qsTr
(
"
Brand Image
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
visible
:
QGroundControl
.
settingsManager
.
brandImageSettings
.
visible
&&
!
ScreenTools
.
isMobile
}
Rectangle
{
height
:
userBrandImageCol
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
2
)
width
:
_panelWidth
Layout.preferredWidth
:
brandImageGrid
.
width
+
(
_margins
*
2
)
Layout.preferredHeight
:
brandImageGrid
.
height
+
(
_margins
*
2
)
Layout.fillWidth
:
true
color
:
qgcPal
.
windowShade
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
QGroundControl
.
settingsManager
.
brandImageSettings
.
visible
&&
!
ScreenTools
.
isMobile
visible
:
brandImageSectionLabel
.
visible
Column
{
id
:
userBrandImageCol
spacing
:
ScreenTools
.
defaultFontPixelWidth
anchors.centerIn
:
parent
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_userBrandImageIndoor
.
visible
GridLayout
{
id
:
brandImageGrid
anchors.margins
:
_margins
anchors.top
:
parent
.
top
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
columns
:
3
QGCLabel
{
anchors.baseline
:
userBrandImageIndoorBrowse
.
baseline
width
:
_labelWidth
*
1.5
text
:
qsTr
(
"
Indoor Brand Image Path:
"
)
text
:
qsTr
(
"
Indoor Image
"
)
visible
:
_userBrandImageIndoor
.
visible
}
QGCTextField
{
anchors.baseline
:
userBrandImageIndoorBrowse
.
baseline
readOnly
:
true
width
:
_editFieldWidth
Layout.fillWidth
:
true
text
:
_userBrandImageIndoor
.
valueString
.
replace
(
"
file:///
"
,
""
)
}
QGCButton
{
id
:
userBrandImageIndoorBrowse
text
:
"
Browse
"
text
:
qsTr
(
"
Browse
"
)
onClicked
:
userBrandImageIndoorBrowseDialog
.
openForLoad
()
QGCFileDialog
{
id
:
userBrandImageIndoorBrowseDialog
qgcView
:
_qgcView
title
:
qsTr
(
"
Choose custom brand image file
:
"
)
title
:
qsTr
(
"
Choose custom brand image file
"
)
folder
:
_userBrandImageIndoor
.
rawValue
.
replace
(
"
file:///
"
,
""
)
selectExisting
:
true
selectFolder
:
false
...
...
@@ -825,31 +702,24 @@ QGCView {
onAcceptedForLoad
:
_userBrandImageIndoor
.
rawValue
=
"
file:///
"
+
file
}
}
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_userBrandImageOutdoor
.
visible
QGCLabel
{
anchors.baseline
:
userBrandImageOutdoorBrowse
.
baseline
width
:
_labelWidth
*
1.5
text
:
qsTr
(
"
Outdoor Brand Image Path:
"
)
text
:
qsTr
(
"
Outdoor Image
"
)
visible
:
_userBrandImageOutdoor
.
visible
}
QGCTextField
{
anchors.baseline
:
userBrandImageOutdoorBrowse
.
baseline
readOnly
:
true
width
:
_editFieldWidth
Layout.fillWidth
:
true
text
:
_userBrandImageOutdoor
.
valueString
.
replace
(
"
file:///
"
,
""
)
}
QGCButton
{
id
:
userBrandImageOutdoorBrowse
text
:
"
Browse
"
text
:
qsTr
(
"
Browse
"
)
onClicked
:
userBrandImageOutdoorBrowseDialog
.
openForLoad
()
QGCFileDialog
{
id
:
userBrandImageOutdoorBrowseDialog
qgcView
:
_qgcView
title
:
qsTr
(
"
Choose custom brand image file
:
"
)
title
:
qsTr
(
"
Choose custom brand image file
"
)
folder
:
_userBrandImageOutdoor
.
rawValue
.
replace
(
"
file:///
"
,
""
)
selectExisting
:
true
selectFolder
:
false
...
...
@@ -857,14 +727,12 @@ QGCView {
onAcceptedForLoad
:
_userBrandImageOutdoor
.
rawValue
=
"
file:///
"
+
file
}
}
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_userBrandImageIndoor
.
visible
QGCButton
{
id
:
userBrandImageReset
text
:
"
Reset Default Brand Image
"
text
:
qsTr
(
"
Reset Default Brand Image
"
)
Layout.columnSpan
:
3
Layout.alignment
:
Qt
.
AlignHCenter
onClicked
:
{
_userBrandImageIndoor
.
rawValue
=
""
_userBrandImageOutdoor
.
rawValue
=
""
...
...
@@ -872,13 +740,19 @@ QGCView {
}
}
}
}
Item
{
width
:
1
;
height
:
_margins
}
QGCLabel
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
text
:
qsTr
(
"
%1 Version: %2
"
).
arg
(
QGroundControl
.
appName
).
arg
(
QGroundControl
.
qgcVersion
)
text
:
qsTr
(
"
%1 Version
"
).
arg
(
QGroundControl
.
appName
)
Layout.alignment
:
Qt
.
AlignHCenter
}
QGCLabel
{
text
:
QGroundControl
.
qgcVersion
Layout.alignment
:
Qt
.
AlignHCenter
}
}
// settingsColumn
}
}
// QGCFlickable
}
// QGCViewPanel
}
// QGCView
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