Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
075b5ec5
Commit
075b5ec5
authored
Feb 17, 2017
by
Gus Grubba
Browse files
Settings interface should define the default settings
parent
6dc57634
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/api/QGCCorePlugin.cc
View file @
075b5ec5
...
...
@@ -126,6 +126,11 @@ QVariantList &QGCCorePlugin::settings()
return
_p
->
settingsList
;
}
int
QGCCorePlugin
::
defaltSettings
()
{
return
0
;
}
QGCOptions
*
QGCCorePlugin
::
options
()
{
if
(
!
_p
->
defaultOptions
)
{
...
...
src/api/QGCCorePlugin.h
View file @
075b5ec5
...
...
@@ -32,20 +32,27 @@ public:
QGCCorePlugin
(
QGCApplication
*
app
);
~
QGCCorePlugin
();
Q_PROPERTY
(
QVariantList
settings
READ
settings
CONSTANT
)
Q_PROPERTY
(
QGCOptions
*
options
READ
options
CONSTANT
)
Q_PROPERTY
(
QVariantList
settings
READ
settings
CONSTANT
)
Q_PROPERTY
(
int
defaltSettings
READ
defaltSettings
CONSTANT
)
Q_PROPERTY
(
QGCOptions
*
options
READ
options
CONSTANT
)
//! The list of settings under the Settings Menu
/*!
@return A list of QGCSettings
*/
virtual
QVariantList
&
settings
();
virtual
QVariantList
&
settings
();
//! The default settings panel to show
/*!
@return The settings index
*/
virtual
int
defaltSettings
();
//! Global options
/*!
@return An instance of QGCOptions
*/
virtual
QGCOptions
*
options
();
virtual
QGCOptions
*
options
();
// Override from QGCTool
void
setToolbox
(
QGCToolbox
*
toolbox
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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