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
a5d3df39
Commit
a5d3df39
authored
Apr 05, 2017
by
DonLakeFlyer
Committed by
Don Gagne
Apr 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FocusScope in all the right places
parent
bc171f06
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
90 deletions
+122
-90
MissionItemEditor.qml
src/PlanView/MissionItemEditor.qml
+18
-3
SectionHeader.qml
src/PlanView/SectionHeader.qml
+36
-28
QGCComboBox.qml
src/QmlControls/QGCComboBox.qml
+4
-1
ToolStrip.qml
src/QmlControls/ToolStrip.qml
+64
-58
No files found.
src/PlanView/MissionItemEditor.qml
View file @
a5d3df39
...
...
@@ -45,9 +45,17 @@ Rectangle {
colorGroupEnabled
:
enabled
}
FocusScope
{
id
:
currentItemScope
anchors.fill
:
parent
MouseArea
{
anchors.fill
:
parent
onClicked
:
_root
.
clicked
()
onClicked
:
{
currentItemScope
.
focus
=
true
_root
.
clicked
()
}
}
}
QGCLabel
{
...
...
@@ -76,7 +84,14 @@ Rectangle {
QGCMouseArea
{
fillItem
:
hamburger
visible
:
hamburger
.
visible
onClicked
:
_waypointsOnlyMode
?
waypointsOnlyMenu
.
popup
()
:
normalMenu
.
popup
()
onClicked
:
{
currentItemScope
.
focus
=
true
if
(
_waypointsOnlyMode
)
{
waypointsOnlyMenu
.
popup
()
}
else
{
normalMenu
.
popup
()
}
}
Menu
{
id
:
normalMenu
...
...
src/PlanView/SectionHeader.qml
View file @
a5d3df39
...
...
@@ -6,12 +6,11 @@ import QtGraphicalEffects 1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
Palette
1.0
QGCMouseArea
{
FocusScope
{
id
:
_root
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
column
.
height
onClicked
:
checked
=
!
checked
property
alias
text
:
label
.
text
property
bool
checked
:
true
...
...
@@ -27,6 +26,14 @@ QGCMouseArea {
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
true
}
QGCMouseArea
{
anchors.fill
:
parent
onClicked
:
{
_root
.
focus
=
true
checked
=
!
checked
}
ColumnLayout
{
id
:
column
anchors.left
:
parent
.
left
...
...
@@ -61,4 +68,5 @@ QGCMouseArea {
color
:
qgcPal
.
text
}
}
}
}
src/QmlControls/QGCComboBox.qml
View file @
a5d3df39
...
...
@@ -68,7 +68,10 @@ Button {
}
}
onClicked
:
popup
.
toggleShow
()
onClicked
:
{
combo
.
focus
=
true
popup
.
toggleShow
()
}
Component.onCompleted
:
{
if
(
currentIndex
===
-
1
)
{
...
...
src/QmlControls/ToolStrip.qml
View file @
a5d3df39
...
...
@@ -163,10 +163,14 @@ Rectangle {
visible
:
index
==
0
?
_showOptionalElements
:
true
}
Rectangle
{
FocusScope
{
id
:
scope
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
width
Rectangle
{
anchors.fill
:
parent
color
:
checked
?
_repeaterPal
.
buttonHighlight
:
_repeaterPal
.
button
QGCColoredImage
{
...
...
@@ -210,6 +214,7 @@ Rectangle {
preventStealing
:
true
onClicked
:
{
scope
.
focus
=
true
if
(
modelData
.
dropPanelComponent
===
undefined
)
{
dropPanel
.
hide
()
if
(
modelData
.
toggle
===
true
)
{
...
...
@@ -233,6 +238,7 @@ Rectangle {
}
}
}
}
Item
{
width
:
1
...
...
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