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
8663920e
Commit
8663920e
authored
Apr 12, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better visual layout
parent
2db30a14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
39 deletions
+20
-39
SimpleItemEditor.qml
src/PlanView/SimpleItemEditor.qml
+20
-39
No files found.
src/PlanView/SimpleItemEditor.qml
View file @
8663920e
...
...
@@ -82,47 +82,43 @@ Rectangle {
GridLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
flow
:
GridLayout
.
TopToBottom
rows
:
missionItem
.
textFieldFacts
.
count
+
missionItem
.
nanFacts
.
count
+
(
missionItem
.
speedSection
.
available
?
1
:
0
)
columns
:
2
Repeater
{
model
:
missionItem
.
textFieldFacts
QGCLabel
{
QGCLabel
{
text
:
object
.
name
}
}
Repeater
{
model
:
missionItem
.
nanFacts
QGCCheckBox
{
text
:
object
.
name
Layout.column
:
0
Layout.row
:
index
checked
:
!
isNaN
(
object
.
rawValue
)
onClicked
:
object
.
rawValue
=
checked
?
0
:
NaN
}
}
QGCCheckBox
{
id
:
flightSpeedCheckbox
text
:
qsTr
(
"
Flight Speed
"
)
checked
:
missionItem
.
speedSection
.
specifyFlightSpeed
onClicked
:
missionItem
.
speedSection
.
specifyFlightSpeed
=
checked
visible
:
missionItem
.
speedSection
.
available
}
Repeater
{
model
:
missionItem
.
textFieldFacts
FactTextField
{
showUnits
:
true
fact
:
object
Layout.column
:
1
Layout.row
:
index
Layout.fillWidth
:
true
}
}
}
GridLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
columns
:
2
Repeater
{
model
:
missionItem
.
nanFacts
QGCCheckBox
{
text
:
object
.
name
Layout.column
:
0
Layout.row
:
index
checked
:
!
isNaN
(
object
.
rawValue
)
onClicked
:
object
.
rawValue
=
checked
?
0
:
NaN
}
}
Repeater
{
model
:
missionItem
.
nanFacts
...
...
@@ -130,31 +126,16 @@ Rectangle {
FactTextField
{
showUnits
:
true
fact
:
object
Layout.column
:
1
Layout.row
:
index
Layout.fillWidth
:
true
enabled
:
!
isNaN
(
object
.
rawValue
)
}
}
}
RowLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
missionItem
.
speedSection
.
available
QGCCheckBox
{
id
:
flightSpeedCheckbox
text
:
qsTr
(
"
Flight Speed
"
)
checked
:
missionItem
.
speedSection
.
specifyFlightSpeed
onClicked
:
missionItem
.
speedSection
.
specifyFlightSpeed
=
checked
}
FactTextField
{
fact
:
missionItem
.
speedSection
.
flightSpeed
Layout.fillWidth
:
true
enabled
:
flightSpeedCheckbox
.
checked
visible
:
missionItem
.
speedSection
.
available
}
}
...
...
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