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
d7e34578
Commit
d7e34578
authored
Jul 18, 2020
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VIsual tweaks
parent
5bcb37d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
+31
-31
SimpleItemEditor.qml
src/PlanView/SimpleItemEditor.qml
+31
-31
No files found.
src/PlanView/SimpleItemEditor.qml
View file @
d7e34578
...
...
@@ -23,6 +23,7 @@ Rectangle {
property
bool
_supportsTerrainFrame
:
_controllerVehicle
.
supportsTerrainFrame
property
int
_globalAltMode
:
missionItem
.
masterController
.
missionController
.
globalAltitudeMode
property
bool
_globalAltModeIsMixed
:
_globalAltMode
==
QGroundControl
.
AltitudeModeNone
property
real
_radius
:
ScreenTools
.
defaultFontPixelWidth
/
2
property
string
_altModeRelativeHelpText
:
qsTr
(
"
Altitude relative to launch altitude
"
)
property
string
_altModeAbsoluteHelpText
:
qsTr
(
"
Altitude above mean sea level
"
)
...
...
@@ -55,6 +56,8 @@ Rectangle {
onAltitudeModeChanged
:
updateAltitudeModeText
()
}
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
enabled
}
Column
{
id
:
editorColumn
anchors.margins
:
_margin
...
...
@@ -120,37 +123,6 @@ Rectangle {
spacing
:
_margin
visible
:
!
missionItem
.
wizardMode
GridLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
columns
:
2
Repeater
{
model
:
missionItem
.
comboboxFacts
QGCLabel
{
text
:
object
.
name
visible
:
object
.
name
!==
""
Layout.column
:
0
Layout.row
:
index
}
}
Repeater
{
model
:
missionItem
.
comboboxFacts
FactComboBox
{
indexModel
:
false
model
:
object
.
enumStrings
fact
:
object
font.pointSize
:
ScreenTools
.
smallFontPointSize
Layout.column
:
1
Layout.row
:
index
Layout.fillWidth
:
true
}
}
}
// This control needs to morph between a simple altitude entry field to a more complex alt mode picker based on the global plan alt mode
Rectangle
{
anchors.left
:
parent
.
left
...
...
@@ -258,6 +230,34 @@ Rectangle {
}
}
ColumnLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
_margin
Repeater
{
model
:
missionItem
.
comboboxFacts
ColumnLayout
{
Layout.fillWidth
:
true
spacing
:
0
QGCLabel
{
font.pointSize
:
ScreenTools
.
smallFontPointSize
text
:
object
.
name
visible
:
object
.
name
!==
""
}
FactComboBox
{
Layout.fillWidth
:
true
indexModel
:
false
model
:
object
.
enumStrings
fact
:
object
}
}
}
}
GridLayout
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
...
...
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