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
5a4ee779
Commit
5a4ee779
authored
May 09, 2017
by
Patrick José Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solve problem with windRosePie Focus
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
70b19881
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
2 deletions
+44
-2
SurveyItemEditor.qml
src/PlanView/SurveyItemEditor.qml
+44
-2
No files found.
src/PlanView/SurveyItemEditor.qml
View file @
5a4ee779
...
@@ -499,13 +499,49 @@ Rectangle {
...
@@ -499,13 +499,49 @@ Rectangle {
spacing
:
_margin
spacing
:
_margin
visible
:
manualGridHeader
.
visible
&&
manualGridHeader
.
checked
visible
:
manualGridHeader
.
visible
&&
manualGridHeader
.
checked
GridLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
columnSpacing
:
_margin
rowSpacing
:
_margin
columns
:
4
visible
:
gridHeader
.
checked
QGCLabel
{
id
:
manualAngleText
text
:
qsTr
(
"
Angle
"
)
Layout.columnSpan
:
1
Layout.fillWidth
:
true
}
property
var
activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
ToolButton
{
id
:
manualWindRoseButton
anchors.verticalCenter
:
manualAngleText
.
verticalCenter
Layout.columnSpan
:
1
iconSource
:
qgcPal
.
globalTheme
===
QGCPalette
.
Light
?
"
/res/wind-roseBlack.svg
"
:
"
/res/wind-rose.svg
"
visible
:
_activeVehicle
?
_activeVehicle
.
fixedWing
:
true
onClicked
:
{
var
cords
=
manualWindRoseButton
.
mapToItem
(
_root
,
0
,
0
)
windRosePie
.
popup
(
cords
.
x
+
manualWindRoseButton
.
width
/
2
,
cords
.
y
+
manualWindRoseButton
.
height
/
2
);
}
}
FactTextField
{
id
:
manualGridAngleText
fact
:
missionItem
.
gridAngle
Layout.columnSpan
:
2
}
}
FactTextFieldGrid
{
FactTextFieldGrid
{
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
columnSpacing
:
ScreenTools
.
defaultFontPixelWidth
columnSpacing
:
ScreenTools
.
defaultFontPixelWidth
rowSpacing
:
_margin
rowSpacing
:
_margin
factList
:
[
missionItem
.
grid
Angle
,
missionItem
.
grid
Spacing
,
missionItem
.
gridAltitude
,
missionItem
.
turnaroundDist
]
factList
:
[
missionItem
.
gridSpacing
,
missionItem
.
gridAltitude
,
missionItem
.
turnaroundDist
]
factLabels
:
[
qsTr
(
"
Angle
"
),
qsTr
(
"
Spacing
"
),
qsTr
(
"
Altitude
"
),
qsTr
(
"
Turnaround dist
"
)]
factLabels
:
[
qsTr
(
"
Spacing
"
),
qsTr
(
"
Altitude
"
),
qsTr
(
"
Turnaround dist
"
)]
}
}
QGCCheckBox
{
QGCCheckBox
{
...
@@ -590,6 +626,7 @@ Rectangle {
...
@@ -590,6 +626,7 @@ Rectangle {
height
:
2.6
*
windRoseButton
.
height
height
:
2.6
*
windRoseButton
.
height
width
:
2.6
*
windRoseButton
.
width
width
:
2.6
*
windRoseButton
.
width
visible
:
false
visible
:
false
focus
:
true
property
string
colorCircle
:
qgcPal
.
windowShade
property
string
colorCircle
:
qgcPal
.
windowShade
property
string
colorBackground
:
qgcPal
.
colorGrey
property
string
colorBackground
:
qgcPal
.
colorGrey
...
@@ -623,6 +660,10 @@ Rectangle {
...
@@ -623,6 +660,10 @@ Rectangle {
}
}
}
}
onFocusChanged
:
{
visible
=
focus
}
function
popup
(
x
,
y
)
{
function
popup
(
x
,
y
)
{
if
(
x
!==
undefined
)
if
(
x
!==
undefined
)
windRosePie
.
x
=
x
-
windRosePie
.
width
/
2
;
windRosePie
.
x
=
x
-
windRosePie
.
width
/
2
;
...
@@ -630,6 +671,7 @@ Rectangle {
...
@@ -630,6 +671,7 @@ Rectangle {
windRosePie
.
y
=
y
-
windRosePie
.
height
/
2
;
windRosePie
.
y
=
y
-
windRosePie
.
height
/
2
;
windRosePie
.
visible
=
true
;
windRosePie
.
visible
=
true
;
windRosePie
.
focus
=
true
}
}
MouseArea
{
MouseArea
{
...
...
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