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
e5dd4678
Commit
e5dd4678
authored
Nov 04, 2017
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix binding output spam
parent
c6701173
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
MissionItemIndicatorDrag.qml
src/FlightMap/MapItems/MissionItemIndicatorDrag.qml
+12
-8
No files found.
src/FlightMap/MapItems/MissionItemIndicatorDrag.qml
View file @
e5dd4678
...
@@ -17,10 +17,10 @@ import QGroundControl.Controls 1.0
...
@@ -17,10 +17,10 @@ import QGroundControl.Controls 1.0
/// Use to drag a MissionItemIndicator
/// Use to drag a MissionItemIndicator
Rectangle
{
Rectangle
{
id
:
itemDragger
id
:
itemDragger
x
:
itemIndicator
.
x
-
_touchMarginHorizontal
x
:
_itemIndicatorX
-
_touchMarginHorizontal
y
:
itemIndicator
.
y
-
_touchMarginVertical
y
:
_itemIndicatorY
-
_touchMarginVertical
width
:
itemIndicator
.
w
idth
+
(
_touchMarginHorizontal
*
2
)
width
:
_itemIndicatorW
idth
+
(
_touchMarginHorizontal
*
2
)
height
:
itemIndicator
.
h
eight
+
(
_touchMarginVertical
*
2
)
height
:
_itemIndicatorH
eight
+
(
_touchMarginVertical
*
2
)
color
:
"
transparent
"
color
:
"
transparent
"
z
:
QGroundControl
.
zOrderMapItems
+
1
// Above item icons
z
:
QGroundControl
.
zOrderMapItems
+
1
// Above item icons
...
@@ -34,11 +34,15 @@ Rectangle {
...
@@ -34,11 +34,15 @@ Rectangle {
property
bool
_preventCoordinateBindingLoop
:
false
property
bool
_preventCoordinateBindingLoop
:
false
property
real
_itemIndicatorX
:
itemIndicator
?
itemIndicator
.
x
:
0
property
real
_itemIndicatorY
:
itemIndicator
?
itemIndicator
.
y
:
0
property
real
_itemIndicatorWidth
:
itemIndicator
?
itemIndicator
.
width
:
0
property
real
_itemIndicatorHeight
:
itemIndicator
?
itemIndicator
.
height
:
0
property
bool
_mobile
:
ScreenTools
.
isMobile
property
bool
_mobile
:
ScreenTools
.
isMobile
property
real
_touchWidth
:
Math
.
max
(
itemIndicator
.
w
idth
,
ScreenTools
.
minTouchPixels
)
property
real
_touchWidth
:
Math
.
max
(
_itemIndicatorW
idth
,
ScreenTools
.
minTouchPixels
)
property
real
_touchHeight
:
Math
.
max
(
itemIndicator
.
h
eight
,
ScreenTools
.
minTouchPixels
)
property
real
_touchHeight
:
Math
.
max
(
_itemIndicatorH
eight
,
ScreenTools
.
minTouchPixels
)
property
real
_touchMarginHorizontal
:
_mobile
?
(
_touchWidth
-
itemIndicator
.
w
idth
)
/
2
:
0
property
real
_touchMarginHorizontal
:
_mobile
?
(
_touchWidth
-
_itemIndicatorW
idth
)
/
2
:
0
property
real
_touchMarginVertical
:
_mobile
?
(
_touchHeight
-
itemIndicator
.
h
eight
)
/
2
:
0
property
real
_touchMarginVertical
:
_mobile
?
(
_touchHeight
-
_itemIndicatorH
eight
)
/
2
:
0
property
bool
_dragStartSignalled
:
false
property
bool
_dragStartSignalled
:
false
onXChanged
:
liveDrag
()
onXChanged
:
liveDrag
()
...
...
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