diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-03-12 19:01:25 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-12 10:14:17 -0700 |
commit | 7ee1884f6e68b33a20f1490e8d6ff236a5858aa5 (patch) | |
tree | 52f3628f9e6b71827f368e69dce8d5e0430518f0 /qt-ui/shifttimes.ui | |
parent | 809a6e784c61364b2f2078cdd1acf452da7550a1 (diff) | |
download | subsurface-7ee1884f6e68b33a20f1490e8d6ff236a5858aa5.tar.gz |
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 <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/shifttimes.ui')
-rw-r--r-- | qt-ui/shifttimes.ui | 25 |
1 files changed, 23 insertions, 2 deletions
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 @@ <ui version="4.0"> <class>ShiftTimesDialog</class> <widget class="QDialog" name="ShiftTimesDialog"> + <property name="windowModality"> + <enum>Qt::WindowModal</enum> + </property> <property name="geometry"> <rect> <x>0</x> @@ -28,7 +31,16 @@ <property name="spacing"> <number>6</number> </property> - <property name="margin"> + <property name="leftMargin"> + <number>9</number> + </property> + <property name="topMargin"> + <number>9</number> + </property> + <property name="rightMargin"> + <number>9</number> + </property> + <property name="bottomMargin"> <number>9</number> </property> <item alignment="Qt::AlignTop"> @@ -40,7 +52,16 @@ <property name="spacing"> <number>6</number> </property> - <property name="margin"> + <property name="leftMargin"> + <number>9</number> + </property> + <property name="topMargin"> + <number>9</number> + </property> + <property name="rightMargin"> + <number>9</number> + </property> + <property name="bottomMargin"> <number>9</number> </property> <item> |