Rename source property of MessageDelegateContextMenu

Starting with Qt6.6, this collides with a FINAL property of Loader and thus doesn't run
This commit is contained in:
Tobias Fella
2023-08-29 23:16:27 +02:00
parent feb2dbc9fb
commit a43990559b
3 changed files with 4 additions and 4 deletions

View File

@@ -622,7 +622,7 @@ ColumnLayout {
selectedText: selectedText, selectedText: selectedText,
author: root.author, author: root.author,
eventId: root.eventId, eventId: root.eventId,
source: root.jsonSource, eventSource: root.jsonSource,
eventType: root.delegateType, eventType: root.delegateType,
plainText: root.plainText, plainText: root.plainText,
htmlText: root.display, htmlText: root.display,

View File

@@ -92,7 +92,7 @@ MessageDelegateContextMenu {
icon.name: "code-context" icon.name: "code-context"
onTriggered: { onTriggered: {
applicationWindow().pageStack.pushDialogLayer('qrc:/MessageSourceSheet.qml', { applicationWindow().pageStack.pushDialogLayer('qrc:/MessageSourceSheet.qml', {
sourceText: root.source sourceText: root.eventSource
}, { }, {
title: i18n("Message Source"), title: i18n("Message Source"),
width: Kirigami.Units.gridUnit * 25 width: Kirigami.Units.gridUnit * 25

View File

@@ -16,7 +16,7 @@ Loader {
required property var author required property var author
required property string eventId required property string eventId
property var eventType property var eventType
required property string source required property string eventSource
property string selectedText: "" property string selectedText: ""
required property string plainText required property string plainText
property string htmlText: undefined property string htmlText: undefined
@@ -85,7 +85,7 @@ Loader {
icon.name: "code-context" icon.name: "code-context"
onTriggered: { onTriggered: {
applicationWindow().pageStack.pushDialogLayer('qrc:/MessageSourceSheet.qml', { applicationWindow().pageStack.pushDialogLayer('qrc:/MessageSourceSheet.qml', {
sourceText: root.source sourceText: root.eventSource
}, { }, {
title: i18n("Message Source"), title: i18n("Message Source"),
width: Kirigami.Units.gridUnit * 25 width: Kirigami.Units.gridUnit * 25