From 7ee1884f6e68b33a20f1490e8d6ff236a5858aa5 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 12 Mar 2014 19:01:25 +0200 Subject: [PATCH] Make some dialogs modal to MainWindow For most dialogs it would be much safer to make them Qt::WindowModal to the parent (MainWindow). For now we are not doing this for the preferences dialog as there are situations where the user might want to be able to move it around and even interact with the main window. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/divecomputermanagementdialog.ui | 3 +++ qt-ui/renumber.ui | 31 ++++++++++++++++++++++----- qt-ui/shiftimagetimes.ui | 3 +++ qt-ui/shifttimes.ui | 25 +++++++++++++++++++-- 4 files changed, 55 insertions(+), 7 deletions(-) diff --git a/qt-ui/divecomputermanagementdialog.ui b/qt-ui/divecomputermanagementdialog.ui index 59be88122..9af67bfb9 100644 --- a/qt-ui/divecomputermanagementdialog.ui +++ b/qt-ui/divecomputermanagementdialog.ui @@ -2,6 +2,9 @@ DiveComputerManagementDialog + + Qt::WindowModal + 0 diff --git a/qt-ui/renumber.ui b/qt-ui/renumber.ui index fef9ec0cf..00e7b84bb 100644 --- a/qt-ui/renumber.ui +++ b/qt-ui/renumber.ui @@ -2,6 +2,9 @@ RenumberDialog + + Qt::WindowModal + 0 @@ -22,7 +25,16 @@ 1 - + + 3 + + + 3 + + + 3 + + 3 @@ -31,17 +43,26 @@ New starting number - + + 0 + + + 0 + + + 0 + + 0 - - 1 - 99999 + + 1 + diff --git a/qt-ui/shiftimagetimes.ui b/qt-ui/shiftimagetimes.ui index 0e91ad63f..ee05c6362 100644 --- a/qt-ui/shiftimagetimes.ui +++ b/qt-ui/shiftimagetimes.ui @@ -2,6 +2,9 @@ ShiftImageTimesDialog + + Qt::WindowModal + 0 diff --git a/qt-ui/shifttimes.ui b/qt-ui/shifttimes.ui index 33977dbc0..55932a2d3 100644 --- a/qt-ui/shifttimes.ui +++ b/qt-ui/shifttimes.ui @@ -2,6 +2,9 @@ ShiftTimesDialog + + Qt::WindowModal + 0 @@ -28,7 +31,16 @@ 6 - + + 9 + + + 9 + + + 9 + + 9 @@ -40,7 +52,16 @@ 6 - + + 9 + + + 9 + + + 9 + + 9