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
f862388b
Commit
f862388b
authored
Mar 15, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problems with core plugin virtually
parent
8e95ba8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
QGCCorePlugin.h
src/api/QGCCorePlugin.h
+5
-2
QGCOptions.h
src/api/QGCOptions.h
+6
-6
No files found.
src/api/QGCCorePlugin.h
View file @
f862388b
...
...
@@ -37,8 +37,8 @@ public:
Q_PROPERTY
(
int
defaultSettings
READ
defaultSettings
CONSTANT
)
Q_PROPERTY
(
QGCOptions
*
options
READ
options
CONSTANT
)
Q_PROPERTY
(
bool
showTouchAreas
MEMBER
_showTouchAreas
NOTIFY
showTouchAreasChanged
)
Q_PROPERTY
(
bool
showAdvancedUI
MEMBER
_showAdvancedUI
NOTIFY
showAdvancedUIChanged
)
Q_PROPERTY
(
bool
showTouchAreas
READ
showTouchAreas
NOTIFY
showTouchAreasChanged
)
Q_PROPERTY
(
bool
showAdvancedUI
READ
showAdvancedUI
NOTIFY
showAdvancedUIChanged
)
Q_PROPERTY
(
QString
brandImageIndoor
READ
brandImageIndoor
CONSTANT
)
Q_PROPERTY
(
QString
brandImageOutdoor
READ
brandImageIndoor
CONSTANT
)
...
...
@@ -71,6 +71,9 @@ public:
/// Return the resource file which contains the brand image for for Outdoor theme.
virtual
QString
brandImageOutdoor
(
void
)
const
{
return
QString
();
}
bool
showTouchAreas
(
void
)
{
return
_showTouchAreas
;
}
bool
showAdvancedUI
(
void
)
{
return
_showAdvancedUI
;
}
// Override from QGCTool
void
setToolbox
(
QGCToolbox
*
toolbox
);
...
...
src/api/QGCOptions.h
View file @
f862388b
...
...
@@ -52,12 +52,12 @@ public:
virtual
CustomInstrumentWidget
*
instrumentWidget
();
/// By returning false you can hide the following sensor calibration pages
bool
showSensorCalibrationCompass
()
const
{
return
true
;
}
bool
showSensorCalibrationGyro
()
const
{
return
true
;
}
bool
showSensorCalibrationAccel
()
const
{
return
true
;
}
bool
showSensorCalibrationLevel
()
const
{
return
true
;
}
bool
showSensorCalibrationAirspeed
()
const
{
return
true
;
}
bool
showSensorCalibrationOrient
()
const
{
return
true
;
}
virtual
bool
showSensorCalibrationCompass
()
const
{
return
true
;
}
virtual
bool
showSensorCalibrationGyro
()
const
{
return
true
;
}
virtual
bool
showSensorCalibrationAccel
()
const
{
return
true
;
}
virtual
bool
showSensorCalibrationLevel
()
const
{
return
true
;
}
virtual
bool
showSensorCalibrationAirspeed
()
const
{
return
true
;
}
virtual
bool
showSensorCalibrationOrient
()
const
{
return
true
;
}
signals:
void
showSensorCalibrationCompassChanged
(
bool
show
);
...
...
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