Fix qml explicit signal argument
This commit is contained in:
@@ -99,7 +99,7 @@ a{
|
||||
wrapMode: Text.Wrap
|
||||
textFormat: Text.RichText
|
||||
|
||||
onLinkActivated: {
|
||||
onLinkActivated: link => {
|
||||
spoilerRevealed = true
|
||||
RoomManager.openResource(link)
|
||||
}
|
||||
|
||||
@@ -52,6 +52,6 @@ RowLayout {
|
||||
Layout.fillWidth: true
|
||||
wrapMode: Text.WordWrap
|
||||
textFormat: Text.RichText
|
||||
onLinkActivated: linkClicked(link)
|
||||
onLinkActivated: link => linkClicked(link)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ QQC2.Control {
|
||||
text: `<style>a {text-decoration: none;}</style><a href="https://matrix.to/#/${modelData.author.id}" style="color: ${modelData.author.color}">${modelData.authorDisplayName}</a> ${modelData.text}`
|
||||
|
||||
onAvatarClicked: RoomManager.openResource("https://matrix.to/#/" + modelData.author.id)
|
||||
onLinkClicked: RoomManager.openResource(link)
|
||||
onLinkClicked: link => RoomManager.openResource(link)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ Loader {
|
||||
icon.name: model.decoration
|
||||
onTriggered: webshortcutmodel.trigger(model.edit)
|
||||
}
|
||||
onObjectAdded: webshortcutmenu.insertItem(0, object)
|
||||
onObjectAdded: (index, object) => webshortcutmenu.insertItem(0, object)
|
||||
}
|
||||
QQC2.MenuSeparator {}
|
||||
QQC2.MenuItem {
|
||||
|
||||
Reference in New Issue
Block a user