Revert "Revert "Implement sending location messages""

This reverts commit 52dafbb6c8.
This commit is contained in:
Tobias Fella
2023-04-09 22:23:03 +02:00
parent 516b1cff88
commit 47a738a703
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 {}
}
}