Port away from implicitly defined onFoo properties in Connections

This commit is contained in:
Tobias Fella
2020-12-21 16:37:22 +01:00
parent 44da1ca1bf
commit b3899f1e69
3 changed files with 16 additions and 8 deletions

View File

@@ -111,7 +111,9 @@ RowLayout {
}
Connections {
target: replyLoader.item
onClicked: replyClicked(reply.eventId)
function onClicked() {
replyClicked(reply.eventId)
}
}
}
RowLayout {

View File

@@ -72,7 +72,7 @@ Kirigami.ScrollablePage {
Connections {
target: Controller
onErrorOccured: {
function onErrorOccured(error, detail) {
inlineMessage.type = Kirigami.MessageType.Error;
if (detail && detail.length !== 0) {
inlineMessage.text = i18n("%1: %2", error, detail);