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
aad551c2
Unverified
Commit
aad551c2
authored
Mar 14, 2018
by
Don Gagne
Committed by
GitHub
Mar 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6217 from DonLakeFlyer/TabletSizing
Fix compass rose sizing
parents
5f39c6ab
0d77a9cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
18 deletions
+42
-18
SurveyItemEditor.qml
src/PlanView/SurveyItemEditor.qml
+42
-18
No files found.
src/PlanView/SurveyItemEditor.qml
View file @
aad551c2
...
...
@@ -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
.
fixedWing
Rectangle
{
id
:
windRoseButton
width
:
ScreenTools
.
implicitTextFieldHeight
height
:
width
color
:
qgcPal
.
button
visible
:
_vehicle
.
fixedWing
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
iconSource
:
qgcPal
.
globalTheme
===
QGCPalette
.
Light
?
"
/res/wind-roseBlack.svg
"
:
"
/res/wind-rose.svg
"
visible
:
_vehicle
.
fixedWing
Rectangle
{
id
:
manualWindRoseButton
width
:
ScreenTools
.
implicitTextFieldHeight
height
:
width
color
:
qgcPal
.
button
visible
:
_vehicle
.
fixedWing
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
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