Port MessageSourceDialog to OverlaySheet

This commit is contained in:
Tobias Fella
2020-11-17 19:29:16 +01:00
parent de183caefb
commit a8b95791e2
10 changed files with 42 additions and 49 deletions

View File

@@ -34,7 +34,7 @@ Control {
onTriggered: {
let contextMenu = fileDelegateContextMenu.createObject(root)
contextMenu.viewSource.connect(function() {
messageSourceDialog.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
messagerSourceSheet.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
})
contextMenu.downloadAndOpen.connect(downloadAndOpen)
contextMenu.saveFileAs.connect(saveFileAs)
@@ -90,9 +90,9 @@ Control {
onSecondaryClicked: saveFileAction.trigger()
Component {
id: messageSourceDialog
id: messagerSourceSheet
MessageSourceDialog {}
MessageSourceSheet {}
}
Component {

View File

@@ -63,7 +63,7 @@ RowLayout {
onClicked: {
var contextMenu = fileDelegateContextMenu.createObject(root)
contextMenu.viewSource.connect(function() {
messageSourceDialog.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
messageSourceSheet.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
})
contextMenu.downloadAndOpen.connect(downloadAndOpen)
contextMenu.saveFileAs.connect(saveFileAs)
@@ -79,9 +79,9 @@ RowLayout {
}
Component {
id: messageSourceDialog
id: messageSourceSheet
MessageSourceDialog {}
MessageSourceSheet {}
}
Component {

View File

@@ -104,7 +104,7 @@ Image {
onSecondaryClicked: {
var contextMenu = imageDelegateContextMenu.createObject(root)
contextMenu.viewSource.connect(function() {
messageSourceDialog.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
messageSourceSheet.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
})
contextMenu.downloadAndOpen.connect(downloadAndOpen)
contextMenu.saveFileAs.connect(saveFileAs)
@@ -120,9 +120,9 @@ Image {
}
Component {
id: messageSourceDialog
id: messageSourceSheet
MessageSourceDialog {}
MessageSourceSheet {}
}
Component {

View File

@@ -191,7 +191,7 @@ RowLayout {
onSecondaryClicked: {
var contextMenu = imageDelegateContextMenu.createObject(root)
contextMenu.viewSource.connect(function() {
messageSourceDialog.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
messageSourceSheet.createObject(ApplicationWindow.overlay, {"sourceText": toolTip}).open()
})
contextMenu.downloadAndOpen.connect(downloadAndOpen)
contextMenu.saveFileAs.connect(saveFileAs)
@@ -207,9 +207,9 @@ RowLayout {
}
Component {
id: messageSourceDialog
id: messageSourceSheet
MessageSourceDialog {}
MessageSourceSheet {}
}
Component {