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
51700e7d
Unverified
Commit
51700e7d
authored
Jul 24, 2018
by
Gus Grubba
Committed by
GitHub
Jul 24, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6730 from mavlink/angleSlider
Adding a slider to set the mission path angle
parents
45c2e7d3
62407de6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
FactTextField.qml
src/FactSystem/FactControls/FactTextField.qml
+4
-0
SurveyItemEditor.qml
src/PlanView/SurveyItemEditor.qml
+14
-0
No files found.
src/FactSystem/FactControls/FactTextField.qml
View file @
51700e7d
...
...
@@ -16,6 +16,8 @@ QGCTextField {
showUnits
:
true
showHelp
:
true
signal
updated
()
property
Fact
fact
:
null
property
string
_validateString
...
...
@@ -29,6 +31,7 @@ QGCTextField {
var
errorString
=
fact
.
validate
(
text
,
false
/* convertOnly */
)
if
(
errorString
===
""
)
{
fact
.
value
=
text
_textField
.
updated
()
}
else
{
_validateString
=
text
qgcView
.
showDialog
(
validationErrorDialogComponent
,
qsTr
(
"
Invalid Value
"
),
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Save
|
StandardButton
.
Cancel
)
...
...
@@ -36,6 +39,7 @@ QGCTextField {
}
else
{
fact
.
value
=
text
fact
.
valueChanged
(
fact
.
value
)
_textField
.
updated
()
}
}
...
...
src/PlanView/SurveyItemEditor.qml
View file @
51700e7d
...
...
@@ -90,6 +90,20 @@ Rectangle {
FactTextField
{
fact
:
missionItem
.
gridAngle
Layout.fillWidth
:
true
onUpdated
:
angleSlider
.
value
=
missionItem
.
gridAngle
.
value
}
QGCSlider
{
id
:
angleSlider
minimumValue
:
0
maximumValue
:
359
stepSize
:
1
tickmarksEnabled
:
false
Layout.fillWidth
:
true
Layout.columnSpan
:
2
Layout.preferredHeight
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
onValueChanged
:
missionItem
.
gridAngle
.
value
=
value
Component.onCompleted
:
value
=
missionItem
.
gridAngle
.
value
updateValueWhileDragging
:
true
}
QGCLabel
{
text
:
qsTr
(
"
Turnaround dist
"
)
}
...
...
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