Add parent windows to file dialogs

This makes sure they are properly placed and modal to the main window
This commit is contained in:
Nicolas Fella
2023-02-25 01:41:18 +01:00
committed by Tobias Fella
parent 44ec93f0a0
commit 8825e6ec83
4 changed files with 14 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
import QtQuick 2.15
import QtQuick.Controls 2.15 as QQC2
import QtQuick.Layouts 1.15
import QtQuick.Window 2.15
import org.kde.kirigami 2.15 as Kirigami
import org.kde.kirigamiaddons.labs.mobileform 0.1 as MobileForm
@@ -281,7 +282,9 @@ Kirigami.ScrollablePage {
Component {
id: openFileDialog
OpenFileDialog {}
OpenFileDialog {
parentWindow: root.Window.window
}
}
Kirigami.OverlaySheet {