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
e6a60628
Commit
e6a60628
authored
Sep 30, 2017
by
Gus Grubba
Committed by
GitHub
Sep 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5720 from mavlink/customSettings
Custom Settings
parents
28e83155
1b7983d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
0 deletions
+60
-0
qgroundcontrol.pro
qgroundcontrol.pro
+2
-0
QGCSettings.cc
src/api/QGCSettings.cc
+21
-0
QGCSettings.h
src/api/QGCSettings.h
+37
-0
No files found.
qgroundcontrol.pro
View file @
e6a60628
...
...
@@ -392,11 +392,13 @@ FORMS += \
HEADERS
+=
\
src
/
api
/
QGCCorePlugin
.
h
\
src
/
api
/
QGCOptions
.
h
\
src
/
api
/
QGCSettings
.
h
\
src
/
api
/
QmlComponentInfo
.
h
\
SOURCES
+=
\
src
/
api
/
QGCCorePlugin
.
cc
\
src
/
api
/
QGCOptions
.
cc
\
src
/
api
/
QGCSettings
.
cc
\
src
/
api
/
QmlComponentInfo
.
cc
\
#
...
...
src/api/QGCSettings.cc
0 → 100644
View file @
e6a60628
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#include "QGCSettings.h"
/// @file
/// @brief Core Plugin Interface for QGroundControl. Settings element.
/// @author Gus Grubba <mavlink@grubba.com>
QGCSettings
::
QGCSettings
(
QString
title
,
QUrl
url
,
QUrl
icon
)
:
_title
(
title
)
,
_url
(
url
)
,
_icon
(
icon
)
{
}
src/api/QGCSettings.h
0 → 100644
View file @
e6a60628
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#pragma once
#include <QObject>
#include <QUrl>
/// @file
/// @brief Core Plugin Interface for QGroundControl. Settings element.
/// @author Gus Grubba <mavlink@grubba.com>
class
QGCSettings
:
public
QObject
{
Q_OBJECT
public:
QGCSettings
(
QString
title
,
QUrl
url
,
QUrl
icon
=
QUrl
());
Q_PROPERTY
(
QString
title
READ
title
CONSTANT
)
Q_PROPERTY
(
QUrl
url
READ
url
CONSTANT
)
Q_PROPERTY
(
QUrl
icon
READ
icon
CONSTANT
)
virtual
QString
title
()
{
return
_title
;
}
virtual
QUrl
url
()
{
return
_url
;
}
virtual
QUrl
icon
()
{
return
_icon
;
}
protected:
QString
_title
;
QUrl
_url
;
QUrl
_icon
;
};
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