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
5ce5a5e5
Commit
5ce5a5e5
authored
Aug 04, 2017
by
Patrick José Pereira
Browse files
Survey: Move windrose to same angle that text entry
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
3aeed07c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PlanView/SurveyItemEditor.qml
View file @
5ce5a5e5
...
...
@@ -445,6 +445,7 @@ Rectangle {
visible
:
_vehicle
.
fixedWing
onClicked
:
{
windRosePie
.
angle
=
Number
(
gridAngleText
.
text
)
var
cords
=
windRoseButton
.
mapToItem
(
_root
,
0
,
0
)
windRosePie
.
popup
(
cords
.
x
+
windRoseButton
.
width
/
2
,
cords
.
y
+
windRoseButton
.
height
/
2
);
}
...
...
@@ -677,7 +678,7 @@ Rectangle {
property
string
colorCircle
:
qgcPal
.
windowShade
property
string
colorBackground
:
qgcPal
.
colorGrey
property
real
lineWidth
:
windRoseButton
.
width
/
3
property
real
angle
:
0
property
real
angle
:
Number
(
gridAngleText
.
text
)
Canvas
{
id
:
windRoseCanvas
...
...
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