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
3ad8eb43
Commit
3ad8eb43
authored
Jun 18, 2016
by
Don Gagne
Committed by
GitHub
Jun 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3594 from NaterGator/master
Removing duplicated QGCQGeoCoordinate
parents
cfc67361
876abd8d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
82 deletions
+0
-82
qgroundcontrol.pro
qgroundcontrol.pro
+0
-2
QGCApplication.cc
src/QGCApplication.cc
+0
-2
QGCQGeoCoordinate.cc
src/QmlControls/QGCQGeoCoordinate.cc
+0
-38
QGCQGeoCoordinate.h
src/QmlControls/QGCQGeoCoordinate.h
+0
-40
No files found.
qgroundcontrol.pro
View file @
3ad8eb43
...
...
@@ -297,7 +297,6 @@ HEADERS += \
src/QmlControls/ParameterEditorController.h \
src/QmlControls/RCChannelMonitorController.h \
src/QmlControls/ScreenToolsController.h \
src/QmlControls/QGCQGeoCoordinate.h \
src/QmlControls/QGroundControlQmlGlobal.h \
src/QmlControls/QmlObjectListModel.h \
src/uas/UAS.h \
...
...
@@ -456,7 +455,6 @@ SOURCES += \
src/QmlControls/ParameterEditorController.cc \
src/QmlControls/RCChannelMonitorController.cc \
src/QmlControls/ScreenToolsController.cc \
src/QmlControls/QGCQGeoCoordinate.cc \
src/QmlControls/QGroundControlQmlGlobal.cc \
src/QmlControls/QmlObjectListModel.cc \
src/uas/UAS.cc \
...
...
src/QGCApplication.cc
View file @
3ad8eb43
...
...
@@ -79,7 +79,6 @@
#include "QGroundControlQmlGlobal.h"
#include "HomePositionManager.h"
#include "FlightMapSettings.h"
#include "QGCQGeoCoordinate.h"
#include "CoordinateVector.h"
#include "MainToolBarController.h"
#include "MissionController.h"
...
...
@@ -354,7 +353,6 @@ void QGCApplication::_initCommon(void)
qmlRegisterUncreatableType
<
CoordinateVector
>
(
"QGroundControl"
,
1
,
0
,
"CoordinateVector"
,
"Reference only"
);
qmlRegisterUncreatableType
<
MissionCommands
>
(
"QGroundControl"
,
1
,
0
,
"MissionCommands"
,
"Reference only"
);
qmlRegisterUncreatableType
<
QGCQGeoCoordinate
>
(
"QGroundControl"
,
1
,
0
,
"QGCQGeoCoordinate"
,
"Reference only"
);
qmlRegisterUncreatableType
<
QmlObjectListModel
>
(
"QGroundControl"
,
1
,
0
,
"QmlObjectListModel"
,
"Reference only"
);
qmlRegisterUncreatableType
<
VideoReceiver
>
(
"QGroundControl"
,
1
,
0
,
"VideoReceiver"
,
"Reference only"
);
qmlRegisterUncreatableType
<
VideoSurface
>
(
"QGroundControl"
,
1
,
0
,
"VideoSurface"
,
"Reference only"
);
...
...
src/QmlControls/QGCQGeoCoordinate.cc
deleted
100644 → 0
View file @
cfc67361
/****************************************************************************
*
* (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.
*
****************************************************************************/
/// @file
/// @author Don Gagne <don@thegagnes.com>
#include "QGCQGeoCoordinate.h"
QGCQGeoCoordinate
::
QGCQGeoCoordinate
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
QGCQGeoCoordinate
::
QGCQGeoCoordinate
(
const
QGeoCoordinate
&
coordinate
,
QObject
*
parent
)
:
QObject
(
parent
)
,
_coordinate
(
coordinate
)
{
}
QGCQGeoCoordinate
::~
QGCQGeoCoordinate
()
{
}
void
QGCQGeoCoordinate
::
setCoordinate
(
const
QGeoCoordinate
&
coordinate
)
{
_coordinate
=
coordinate
;
emit
coordinateChanged
(
_coordinate
);
}
src/QmlControls/QGCQGeoCoordinate.h
deleted
100644 → 0
View file @
cfc67361
/****************************************************************************
*
* (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.
*
****************************************************************************/
#ifndef QGCQGeoCoordinate_H
#define QGCQGeoCoordinate_H
#include <QObject>
#include <QGeoCoordinate>
/// This class wraps a QGeoCoordinate in a QObject so that it can be used from within a
/// QmlObjectListModel.
class
QGCQGeoCoordinate
:
public
QObject
{
Q_OBJECT
public:
QGCQGeoCoordinate
(
QObject
*
parent
=
NULL
);
QGCQGeoCoordinate
(
const
QGeoCoordinate
&
coordinate
,
QObject
*
parent
=
NULL
);
~
QGCQGeoCoordinate
();
Q_PROPERTY
(
QGeoCoordinate
coordinate
MEMBER
_coordinate
NOTIFY
coordinateChanged
)
void
setCoordinate
(
const
QGeoCoordinate
&
coordinate
);
signals:
void
coordinateChanged
(
QGeoCoordinate
coordinate
);
private:
QGeoCoordinate
_coordinate
;
};
#endif
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