Set Dialog flag on Dialogs

Relates to #538
This commit is contained in:
Nicolas Werner 2021-04-15 01:39:32 +02:00
parent a6c89d1362
commit 84b2cf08a1
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
3 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@ ApplicationWindow {
palette: colors
color: colors.window
modality: Qt.WindowModal
flags: Qt.Dialog
Shortcut {
sequence: StandardKey.Cancel

View File

@ -22,6 +22,8 @@ ApplicationWindow {
palette: colors
color: colors.window
title: profile.isGlobalUserProfile ? qsTr("Global User Profile") : qsTr("Room User Profile")
modality: Qt.WindowModal
flags: Qt.Dialog
Shortcut {
sequence: StandardKey.Cancel

View File

@ -15,9 +15,12 @@ ApplicationWindow {
onClosing: TimelineManager.removeVerificationFlow(flow)
title: stack.currentItem.title
flags: Qt.Dialog
modality: Qt.WindowModal
palette: colors
height: stack.implicitHeight
width: stack.implicitWidth
x: MainWindow.x + (MainWindow.width / 2) - (width / 2)
y: MainWindow.y + (MainWindow.height / 2) - (height / 2)
StackView {
id: stack