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
e5dd4678
Commit
e5dd4678
authored
Nov 04, 2017
by
Don Gagne
Browse files
Fix binding output spam
parent
c6701173
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
:
_
itemIndicator
X
-
_touchMarginHorizontal
y
:
itemIndicator
.
y
-
_touchMarginVertical
y
:
_
itemIndicator
Y
-
_touchMarginVertical
width
:
itemIndicator
.
w
idth
+
(
_touchMarginHorizontal
*
2
)
width
:
_
itemIndicator
W
idth
+
(
_touchMarginHorizontal
*
2
)
height
:
itemIndicator
.
h
eight
+
(
_touchMarginVertical
*
2
)
height
:
_
itemIndicator
H
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
(
_
itemIndicator
W
idth
,
ScreenTools
.
minTouchPixels
)
property
real
_touchHeight
:
Math
.
max
(
itemIndicator
.
h
eight
,
ScreenTools
.
minTouchPixels
)
property
real
_touchHeight
:
Math
.
max
(
_
itemIndicator
H
eight
,
ScreenTools
.
minTouchPixels
)
property
real
_touchMarginHorizontal
:
_mobile
?
(
_touchWidth
-
itemIndicator
.
w
idth
)
/
2
:
0
property
real
_touchMarginHorizontal
:
_mobile
?
(
_touchWidth
-
_
itemIndicator
W
idth
)
/
2
:
0
property
real
_touchMarginVertical
:
_mobile
?
(
_touchHeight
-
itemIndicator
.
h
eight
)
/
2
:
0
property
real
_touchMarginVertical
:
_mobile
?
(
_touchHeight
-
_
itemIndicator
H
eight
)
/
2
:
0
property
bool
_dragStartSignalled
:
false
property
bool
_dragStartSignalled
:
false
onXChanged
:
liveDrag
()
onXChanged
:
liveDrag
()
...
...
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