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
cbfe1775
Commit
cbfe1775
authored
Aug 23, 2010
by
Mariano Lizarraga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Started scaffolding the drag and drop of waypoints
parent
96947527
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
MapWidget.cc
src/ui/MapWidget.cc
+9
-2
MapWidget.h
src/ui/MapWidget.h
+2
-0
No files found.
src/ui/MapWidget.cc
View file @
cbfe1775
...
...
@@ -191,10 +191,17 @@ void MapWidget::captureMapClick(const QMouseEvent* event, const QPointF coordina
}
void
MapWidget
::
captureGeometryClick
(
Geometry
*
geom
,
QPoint
point
){
Q_UNUSED
(
point
);
qDebug
()
<<
geom
->
name
();
qDebug
()
<<
geom
->
name
();
qDebug
()
<<
geom
->
GeometryType
;
qDebug
()
<<
point
;
}
void
MapWidget
::
captureGeometryDrag
(
Geometry
*
geom
,
QPointF
coordinate
){
qDebug
()
<<
geom
->
name
();
qDebug
()
<<
geom
->
GeometryType
;
qDebug
()
<<
coordinate
;
}
MapWidget
::~
MapWidget
()
...
...
src/ui/MapWidget.h
View file @
cbfe1775
...
...
@@ -87,6 +87,8 @@ protected:
void
captureMapClick
(
const
QMouseEvent
*
event
,
const
QPointF
coordinate
);
void
createPathButtonClicked
();
void
captureGeometryClick
(
Geometry
*
,
QPoint
);
void
captureGeometryDrag
(
Geometry
*
geom
,
QPointF
coordinate
);
private:
Ui
::
MapWidget
*
m_ui
;
QList
<
Point
*>
wps
;
...
...
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