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
1f464e45
Commit
1f464e45
authored
Mar 20, 2017
by
Donald Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide firmware supports by QGCOptions
parent
b97caf30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
SetupView.qml
src/VehicleSetup/SetupView.qml
+6
-5
QGCOptions.h
src/api/QGCOptions.h
+4
-0
No files found.
src/VehicleSetup/SetupView.qml
View file @
1f464e45
...
...
@@ -36,6 +36,7 @@ Rectangle {
property
string
_messagePanelText
:
"
missing message panel text
"
property
bool
_fullParameterVehicleAvailable
:
QGroundControl
.
multiVehicleManager
.
parameterReadyVehicleAvailable
&&
!
QGroundControl
.
multiVehicleManager
.
activeVehicle
.
parameterManager
.
missingParameters
property
var
_corePlugin
:
QGroundControl
.
corePlugin
function
showSummaryPanel
()
{
...
...
@@ -231,14 +232,14 @@ Rectangle {
}
Repeater
{
model
:
QGroundControl
.
corePlugin
.
settingsPages
visible
:
QGroundControl
.
corePlugin
.
options
.
combineSettingsAndSetup
model
:
_
corePlugin
.
settingsPages
visible
:
_
corePlugin
.
options
.
combineSettingsAndSetup
SubMenuButton
{
imageResource
:
modelData
.
icon
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
text
:
modelData
.
title
visible
:
QGroundControl
.
corePlugin
.
options
.
combineSettingsAndSetup
visible
:
_
corePlugin
.
options
.
combineSettingsAndSetup
onClicked
:
panelLoader
.
setSource
(
modelData
.
url
)
Layout.fillWidth
:
true
}
...
...
@@ -261,7 +262,7 @@ Rectangle {
imageResource
:
"
/qmlimages/FirmwareUpgradeIcon.png
"
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
!
ScreenTools
.
isMobile
visible
:
!
ScreenTools
.
isMobile
&&
_corePlugin
.
options
.
showFirmwareUpgrade
text
:
"
Firmware
"
Layout.fillWidth
:
true
...
...
@@ -311,7 +312,7 @@ Rectangle {
SubMenuButton
{
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
QGroundControl
.
multiVehicleManager
.
parameterReadyVehicleAvailable
&&
QGroundControl
.
corePlugin
.
showAdvancedUI
visible
:
QGroundControl
.
multiVehicleManager
.
parameterReadyVehicleAvailable
&&
_
corePlugin
.
showAdvancedUI
text
:
"
Parameters
"
Layout.fillWidth
:
true
...
...
src/api/QGCOptions.h
View file @
1f464e45
...
...
@@ -34,6 +34,7 @@ public:
Q_PROPERTY
(
bool
showSensorCalibrationLevel
READ
showSensorCalibrationLevel
NOTIFY
showSensorCalibrationLevelChanged
)
Q_PROPERTY
(
bool
showSensorCalibrationAirspeed
READ
showSensorCalibrationAirspeed
NOTIFY
showSensorCalibrationAirspeedChanged
)
Q_PROPERTY
(
bool
showSensorCalibrationOrient
READ
showSensorCalibrationOrient
NOTIFY
showSensorCalibrationOrientChanged
)
Q_PROPERTY
(
bool
showFirmwareUpgrade
READ
showFirmwareUpgrade
NOTIFY
showFirmwareUpgradeChanged
)
/// Should QGC hide its settings menu and colapse it into one single menu (Settings and Vehicle Setup)?
/// @return true if QGC should consolidate both menus into one.
...
...
@@ -59,6 +60,8 @@ public:
virtual
bool
showSensorCalibrationAirspeed
()
const
{
return
true
;
}
virtual
bool
showSensorCalibrationOrient
()
const
{
return
true
;
}
virtual
bool
showFirmwareUpgrade
()
const
{
return
true
;
}
signals:
void
showSensorCalibrationCompassChanged
(
bool
show
);
void
showSensorCalibrationGyroChanged
(
bool
show
);
...
...
@@ -66,6 +69,7 @@ signals:
void
showSensorCalibrationLevelChanged
(
bool
show
);
void
showSensorCalibrationAirspeedChanged
(
bool
show
);
void
showSensorCalibrationOrientChanged
(
bool
show
);
void
showFirmwareUpgradeChanged
(
bool
show
);
private:
CustomInstrumentWidget
*
_defaultInstrumentWidget
;
...
...
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