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
a6cabdf4
Commit
a6cabdf4
authored
Apr 28, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Reset to Default, Set RC Param, warning
parent
5dc01461
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
6 deletions
+36
-6
ParameterEditor.qml
src/QmlControls/ParameterEditor.qml
+36
-6
No files found.
src/QmlControls/ParameterEditor.qml
View file @
a6cabdf4
...
...
@@ -61,7 +61,7 @@ Rectangle {
property
real
__textWidth
:
__textControl
.
contentWidth
Item
{
id
:
editorOverlay
id
:
__
editorOverlay
anchors.fill
:
parent
visible
:
false
...
...
@@ -105,7 +105,7 @@ Rectangle {
text
:
"
Cancel
"
onClicked
:
{
editorOverlay
.
visible
=
false
__
editorOverlay
.
visible
=
false
}
}
...
...
@@ -117,7 +117,7 @@ Rectangle {
onClicked
:
{
__editorOverlayFact
.
value
=
valueField
.
text
editorOverlay
.
visible
=
false
__
editorOverlay
.
visible
=
false
}
}
}
...
...
@@ -176,10 +176,40 @@ Rectangle {
QGCLabel
{
text
:
"
Default value:
"
}
QGCLabel
{
text
:
__editorOverlayFact
.
defaultValueAvailable
?
__editorOverlayFact
.
defaultValue
:
"
none
"
}
}
QGCLabel
{
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
text
:
"
Warning: Modifying parameters while vehicle is in flight can lead to vehicle instability and possible vehicle loss.
"
+
"
Make sure you know what you are doing and double-check your values before Save!
"
}
}
// Column - Fact information
}
// Column - Header + Fact information
QGCButton
{
anchors.rightMargin
:
__textWidth
anchors.right
:
rcButton
.
left
anchors.bottom
:
parent
.
bottom
visible
:
__editorOverlayFact
.
defaultValueAvailable
text
:
"
Reset to default
"
onClicked
:
{
__editorOverlayFact
.
value
=
__editorOverlayFact
.
defaultValue
__editorOverlay
.
visible
=
false
}
}
}
}
QGCButton
{
id
:
rcButton
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
visible
:
__editorOverlayFact
.
defaultValueAvailable
text
:
"
Set RC to Param...
"
onClicked
:
__controller
.
setRCToParam
(
__editorOverlayFact
.
name
)
}
}
// Rectangle - editorDialog
}
// Item - editorOverlay
Component
{
id
:
factRowsComponent
...
...
@@ -250,7 +280,7 @@ Rectangle {
onClicked
:
{
__editorOverlayFact
=
modelFact
editorOverlay
.
visible
=
true
__
editorOverlay
.
visible
=
true
}
}
}
...
...
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