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
b9881d69
Commit
b9881d69
authored
Mar 14, 2018
by
DonLakeFlyer
Browse files
Merge branch 'Stable_V3.3' of
https://github.com/mavlink/qgroundcontrol
into StableMerge
parents
bf86d7fc
aad551c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PlanView/SurveyItemEditor.qml
View file @
b9881d69
...
...
@@ -440,16 +440,28 @@ Rectangle {
Layout.fillWidth
:
true
}
ToolButton
{
id
:
windRoseButton
anchors.verticalCenter
:
angleText
.
verticalCenter
iconSource
:
qgcPal
.
globalTheme
===
QGCPalette
.
Light
?
"
/res/wind-roseBlack.svg
"
:
"
/res/wind-rose.svg
"
visible
:
_vehicle
?
_vehicle
.
fixedWing
:
false
Rectangle
{
id
:
windRoseButton
width
:
ScreenTools
.
implicitTextFieldHeight
height
:
width
color
:
qgcPal
.
button
visible
:
_vehicle
?
_vehicle
.
fixedWing
:
false
QGCColoredImage
{
anchors.fill
:
parent
source
:
"
/res/wind-rose.svg
"
smooth
:
true
color
:
qgcPal
.
buttonText
}
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
)
QGCMouseArea
{
fillItem
:
parent
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
)
}
}
}
}
...
...
@@ -543,16 +555,28 @@ Rectangle {
Layout.fillWidth
:
true
}
ToolButton
{
id
:
manualWindRoseButton
anchors.verticalCenter
:
manualAngleText
.
verticalCenter
Layout.columnSpan
:
1
i
co
nSource
:
qgcPal
.
globalTheme
===
QGCPalette
.
Light
?
"
/res/wind-roseBlack.svg
"
:
"
/res/wind-rose.svg
"
visible
:
_vehicle
?
_vehicle
.
fixedWing
:
false
Rectangle
{
id
:
manualWindRoseButton
width
:
ScreenTools
.
implicitTextFieldHeight
height
:
width
co
lor
:
qgcPal
.
button
visible
:
_vehicle
?
_vehicle
.
fixedWing
:
false
onClicked
:
{
var
cords
=
manualWindRoseButton
.
mapToItem
(
_root
,
0
,
0
)
windRosePie
.
popup
(
cords
.
x
+
manualWindRoseButton
.
width
/
2
,
cords
.
y
+
manualWindRoseButton
.
height
/
2
)
QGCColoredImage
{
anchors.fill
:
parent
source
:
"
/res/wind-rose.svg
"
smooth
:
true
color
:
qgcPal
.
buttonText
}
QGCMouseArea
{
fillItem
:
parent
onClicked
:
{
windRosePie
.
angle
=
Number
(
gridAngleText
.
text
)
var
cords
=
manualWindRoseButton
.
mapToItem
(
_root
,
0
,
0
)
windRosePie
.
popup
(
cords
.
x
+
manualWindRoseButton
.
width
/
2
,
cords
.
y
+
manualWindRoseButton
.
height
/
2
)
}
}
}
}
...
...
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