Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
6ccc57eb
Commit
6ccc57eb
authored
Dec 31, 2020
by
Volker Krause
Browse files
Add long-press element picking for interactive elements
Allows access to elevator/escalator details for example.
parent
456fc467
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/IndoorMapPage.qml
View file @
6ccc57eb
...
...
@@ -247,6 +247,13 @@ Kirigami.Page {
elementDetailsSheet
.
sheetOpen
=
true
;
}
}
onElementLongPressed
:
{
// this provides info model access for elements with other interactions
infoModel
.
element
=
element
;
if
(
infoModel
.
name
!=
""
||
infoModel
.
debug
)
{
elementDetailsSheet
.
sheetOpen
=
true
;
}
}
}
onCoordinateChanged
:
map
.
mapLoader
.
loadForCoordinate
(
coordinate
.
y
,
coordinate
.
x
);
...
...
Write
Preview
Supports
Markdown
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