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
fc3f1350
Commit
fc3f1350
authored
Mar 01, 2017
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase hamburger touch size
parent
5ee3a9f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
35 deletions
+42
-35
MissionItemEditor.qml
src/MissionEditor/MissionItemEditor.qml
+42
-35
No files found.
src/MissionEditor/MissionItemEditor.qml
View file @
fc3f1350
...
...
@@ -66,50 +66,57 @@ Rectangle {
visible
:
missionItem
.
isCurrentItem
&&
missionItem
.
sequenceNumber
!=
0
color
:
qgcPal
.
windowShade
MouseArea
{
anchors.fill
:
parent
onClicked
:
hamburgerMenu
.
popup
()
}
Menu
{
id
:
hamburgerMenu
MouseArea
{
// The MouseArea for the hamburger is larger than the hamburger image itself in order to provide a larger
// touch area on mobile
anchors.top
:
parent
.
top
anchors.bottom
:
editorLoader
.
top
anchors.leftMargin
:
-
hamburger
.
anchors
.
rightMargin
anchors.left
:
hamburger
.
left
anchors.right
:
parent
.
right
onClicked
:
hamburgerMenu
.
popup
()
Menu
{
id
:
hamburgerMenu
MenuItem
{
text
:
qsTr
(
"
Insert
"
)
onTriggered
:
insert
()
}
MenuItem
{
text
:
qsTr
(
"
Insert
"
)
onTriggered
:
insert
()
}
MenuItem
{
text
:
qsTr
(
"
Delete
"
)
onTriggered
:
remove
()
}
MenuItem
{
text
:
qsTr
(
"
Delete
"
)
onTriggered
:
remove
()
}
MenuItem
{
text
:
"
Change command...
"
onTriggered
:
commandPicker
.
clicked
()
}
MenuItem
{
text
:
"
Change command...
"
onTriggered
:
commandPicker
.
clicked
()
}
MenuSeparator
{
visible
:
missionItem
.
isSimpleItem
}
MenuSeparator
{
visible
:
missionItem
.
isSimpleItem
}
MenuItem
{
text
:
qsTr
(
"
Show all values
"
)
checkable
:
true
checked
:
missionItem
.
isSimpleItem
?
missionItem
.
rawEdit
:
false
visible
:
missionItem
.
isSimpleItem
MenuItem
{
text
:
qsTr
(
"
Show all values
"
)
checkable
:
true
checked
:
missionItem
.
isSimpleItem
?
missionItem
.
rawEdit
:
false
visible
:
missionItem
.
isSimpleItem
onTriggered
:
{
if
(
missionItem
.
rawEdit
)
{
if
(
missionItem
.
friendlyEditAllowed
)
{
missionItem
.
rawEdit
=
false
}
else
{
qgcView
.
showMessage
(
qsTr
(
"
Mission Edit
"
),
qsTr
(
"
You have made changes to the mission item which cannot be shown in Simple Mode
"
),
StandardButton
.
Ok
)
}
onTriggered
:
{
if
(
missionItem
.
rawEdit
)
{
if
(
missionItem
.
friendlyEditAllowed
)
{
missionItem
.
rawEdit
=
false
}
else
{
missionItem
.
rawEdit
=
true
qgcView
.
showMessage
(
qsTr
(
"
Mission Edit
"
),
qsTr
(
"
You have made changes to the mission item which cannot be shown in Simple Mode
"
),
StandardButton
.
Ok
)
}
checked
=
missionItem
.
rawEdit
}
else
{
missionItem
.
rawEdit
=
true
}
checked
=
missionItem
.
rawEdit
}
}
}
...
...
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