Switch from QQC2.ApplicationWindow.overlay to QQC2.Overlay.overlay

Closes #648
This commit is contained in:
Joshua Goins
2024-06-08 11:31:13 -04:00
parent 364eda6400
commit 6275d7afaa
11 changed files with 12 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ QQC2.Popup {
onClicked: { onClicked: {
root.close(); root.close();
var fileDialog = openFileDialog.createObject(QQC2.ApplicationWindow.overlay); var fileDialog = openFileDialog.createObject(QQC2.Overlay.overlay);
fileDialog.chosen.connect(path => root.chosen(path)); fileDialog.chosen.connect(path => root.chosen(path));
fileDialog.open(); fileDialog.open();
} }

View File

@@ -115,7 +115,7 @@ QQC2.Control {
displayHint: QQC2.AbstractButton.IconOnly displayHint: QQC2.AbstractButton.IconOnly
onTriggered: { onTriggered: {
locationChooser.createObject(QQC2.ApplicationWindow.overlay, { locationChooser.createObject(QQC2.Overlay.overlay, {
room: root.currentRoom room: root.currentRoom
}).open(); }).open();
} }

View File

@@ -49,7 +49,7 @@ DelegateContextMenu {
text: i18n("Save As") text: i18n("Save As")
icon.name: "document-save" icon.name: "document-save"
onTriggered: { onTriggered: {
var dialog = saveAsDialog.createObject(QQC2.ApplicationWindow.overlay); var dialog = saveAsDialog.createObject(QQC2.Overlay.overlay);
dialog.open(); dialog.open();
dialog.currentFile = dialog.folder + "/" + currentRoom.fileNameToDownload(eventId); dialog.currentFile = dialog.folder + "/" + currentRoom.fileNameToDownload(eventId);
} }

View File

@@ -101,7 +101,7 @@ Components.AlbumMaximizeComponent {
onItemRightClicked: RoomManager.viewEventMenu(root.currentEventId, root.currentRoom) onItemRightClicked: RoomManager.viewEventMenu(root.currentEventId, root.currentRoom)
onSaveItem: { onSaveItem: {
var dialog = saveAsDialog.createObject(QQC2.ApplicationWindow.overlay); var dialog = saveAsDialog.createObject(QQC2.Overlay.overlay);
dialog.open(); dialog.open();
dialog.currentFile = dialog.folder + "/" + currentRoom.fileNameToDownload(root.currentEventId); dialog.currentFile = dialog.folder + "/" + currentRoom.fileNameToDownload(root.currentEventId);
} }

View File

@@ -242,7 +242,7 @@ QQC2.Control {
text: i18nc("Join <name of a space>", "Join %1", SpaceHierarchyCache.recommendedSpaceDisplayName) text: i18nc("Join <name of a space>", "Join %1", SpaceHierarchyCache.recommendedSpaceDisplayName)
source: SpaceHierarchyCache.recommendedSpaceAvatar.length > 0 ? root.connection.makeMediaUrl(SpaceHierarchyCache.recommendedSpaceAvatar) : "" source: SpaceHierarchyCache.recommendedSpaceAvatar.length > 0 ? root.connection.makeMediaUrl(SpaceHierarchyCache.recommendedSpaceAvatar) : ""
onSelected: { onSelected: {
recommendedSpaceDialogComponent.createObject(QQC2.ApplicationWindow.overlay, { recommendedSpaceDialogComponent.createObject(QQC2.Overlay.overlay, {
connection: root.connection connection: root.connection
}).open(); }).open();
} }

View File

@@ -123,7 +123,7 @@ Item {
icon.name: "list-remove" icon.name: "list-remove"
display: QQC2.AbstractButton.IconOnly display: QQC2.AbstractButton.IconOnly
onClicked: { onClicked: {
removeChildDialog.createObject(QQC2.ApplicationWindow.overlay, { removeChildDialog.createObject(QQC2.Overlay.overlay, {
parentRoom: root.parentRoom, parentRoom: root.parentRoom,
roomId: root.roomId, roomId: root.roomId,
displayName: root.displayName, displayName: root.displayName,

View File

@@ -94,7 +94,7 @@ RowLayout {
id: switchUserButton id: switchUserButton
text: i18n("Switch User") text: i18n("Switch User")
icon.name: "system-switch-user" icon.name: "system-switch-user"
onTriggered: accountSwitchDialog.createObject(QQC2.ApplicationWindow.overlay, { onTriggered: accountSwitchDialog.createObject(QQC2.Overlay.overlay, {
connection: root.connection connection: root.connection
}).open(); }).open();
}, },
@@ -123,7 +123,7 @@ RowLayout {
// id: switchUserButton // id: switchUserButton
// text: i18n("Switch User") // text: i18n("Switch User")
// icon.name: "system-switch-user" // icon.name: "system-switch-user"
// onTriggered: accountSwitchDialog.createObject(QQC2.ApplicationWindow.overlay, { // onTriggered: accountSwitchDialog.createObject(QQC2.Overlay.overlay, {
// connection: root.connection // connection: root.connection
// }).open(); // }).open();
// } // }

View File

@@ -116,7 +116,7 @@ FormCard.FormCardPage {
FormCard.FormButtonDelegate { FormCard.FormButtonDelegate {
text: i18nc("@action:button", "QR code for account") text: i18nc("@action:button", "QR code for account")
onClicked: { onClicked: {
let qrMax = Qt.createComponent('org.kde.neochat', 'QrCodeMaximizeComponent').createObject(QQC2.ApplicationWindow.overlay, { let qrMax = Qt.createComponent('org.kde.neochat', 'QrCodeMaximizeComponent').createObject(QQC2.Overlay.overlay, {
text: "https://matrix.to/#/" + root.connection.localUser.id, text: "https://matrix.to/#/" + root.connection.localUser.id,
title: root.connection.localUser.displayName, title: root.connection.localUser.displayName,
subtitle: root.connection.localUser.id, subtitle: root.connection.localUser.id,

View File

@@ -73,7 +73,7 @@ FormCard.FormCardPage {
if (fileDialog != null) { if (fileDialog != null) {
return; return;
} }
fileDialog = openFileDialog.createObject(QQC2.ApplicationWindow.Overlay); fileDialog = openFileDialog.createObject(QQC2.Overlay.overlay);
fileDialog.chosen.connect(function (receivedSource) { fileDialog.chosen.connect(function (receivedSource) {
mouseArea.fileDialog = null; mouseArea.fileDialog = null;
if (!receivedSource) { if (!receivedSource) {

View File

@@ -48,7 +48,7 @@ FormCard.FormCardPage {
display: QQC2.AbstractButton.IconOnly display: QQC2.AbstractButton.IconOnly
onClicked: { onClicked: {
const fileDialog = openFileDialog.createObject(QQC2.ApplicationWindow.overlay); const fileDialog = openFileDialog.createObject(QQC2.Overlay.overlay);
fileDialog.chosen.connect(function (path) { fileDialog.chosen.connect(function (path) {
if (!path) if (!path)
return; return;

View File

@@ -74,7 +74,7 @@ ColumnLayout {
property real maxContentWidth: -1 property real maxContentWidth: -1
function saveFileAs() { function saveFileAs() {
const dialog = fileDialog.createObject(QQC2.ApplicationWindow.overlay); const dialog = fileDialog.createObject(QQC2.Overlay.overlay);
dialog.open(); dialog.open();
dialog.currentFile = dialog.folder + "/" + root.room.fileNameToDownload(root.eventId); dialog.currentFile = dialog.folder + "/" + root.room.fileNameToDownload(root.eventId);
} }