Implement sending location messages

This commit is contained in:
Tobias Fella
2023-04-09 00:44:02 +00:00
parent 419cb07557
commit f3a04635cf
5 changed files with 132 additions and 1 deletions

View File

@@ -65,8 +65,17 @@ QQC2.Control {
emojiDialog.open()
}
}
},
Kirigami.Action {
id: mapButton
icon.name: "globe"
property bool isBusy: false
text: i18n("Send a Location")
displayHint: QQC2.AbstractButton.IconOnly
tooltip: text
onTriggered: {
locationChooserComponent.createObject(QQC2.ApplicationWindow.overlay, {room: currentRoom}).open()
}
},
Kirigami.Action {
id: sendAction
@@ -473,4 +482,9 @@ QQC2.Control {
textField.cursorPosition = index + format.start.length + format.end.length;
}
}
Component {
id: locationChooserComponent
LocationChooser {}
}
}