Show a map for location events
This commit is contained in:
committed by
Volker Krause
parent
d14db326bb
commit
5b4ae764cf
@@ -36,6 +36,7 @@ TimelineContainer {
|
||||
* a user's location.
|
||||
*/
|
||||
required property string asset
|
||||
required property var content
|
||||
|
||||
ColumnLayout {
|
||||
Layout.maximumWidth: root.contentMaxWidth
|
||||
@@ -92,6 +93,10 @@ TimelineContainer {
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.LeftButton
|
||||
onTapped: {
|
||||
let map = fullScreenMap.createObject(parent, {content: root.content});
|
||||
map.open()
|
||||
}
|
||||
onLongPressed: openMessageContext("")
|
||||
}
|
||||
TapHandler {
|
||||
@@ -99,5 +104,9 @@ TimelineContainer {
|
||||
onTapped: openMessageContext("")
|
||||
}
|
||||
}
|
||||
Component {
|
||||
id: fullScreenMap
|
||||
FullScreenMap { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user