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
10c782f9
Commit
10c782f9
authored
Apr 12, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3213 from DonLakeFlyer/ScrollToCurrentItem
Plan: Scroll list to current item
parents
01e2a027
9fe27499
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
MissionEditor.qml
src/MissionEditor/MissionEditor.qml
+18
-0
No files found.
src/MissionEditor/MissionEditor.qml
View file @
10c782f9
...
...
@@ -287,6 +287,7 @@ QGCView {
if
(
addMissionItemsButton
.
checked
)
{
var
sequenceNumber
=
controller
.
insertSimpleMissionItem
(
coordinate
,
controller
.
visualItems
.
count
)
setCurrentItem
(
sequenceNumber
)
editorListView
.
positionViewAtIndex
(
editorListView
.
count
-
1
,
ListView
.
Contain
)
}
else
{
editorMap
.
mapClicked
(
coordinate
)
}
...
...
@@ -464,6 +465,13 @@ QGCView {
opacity
:
_rightPanelOpacity
z
:
QGroundControl
.
zOrderTopMost
MouseArea
{
// This MouseArea prevents the Map below it from getting Mouse events. Without this
// things like mousewheel will scroll the Flickable and then scroll the map as well.
anchors.fill
:
editorListView
onWheel
:
wheel
.
accepted
=
true
}
ListView
{
id
:
editorListView
anchors.left
:
parent
.
left
...
...
@@ -494,6 +502,16 @@ QGCView {
}
onMoveHomeToMapCenter
:
controller
.
visualItems
.
get
(
0
).
coordinate
=
editorMap
.
center
Connections
{
target
:
object
onIsCurrentItemChanged
:
{
if
(
object
.
isCurrentItem
)
{
editorListView
.
positionViewAtIndex
(
index
,
ListView
.
Contain
)
}
}
}
}
}
// ListView
}
// Item - Mission Item editor
...
...
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