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/renumber.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/renumber.ui')
-rw-r--r-- | qt-ui/renumber.ui | 31 |
1 files changed, 26 insertions, 5 deletions
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 @@ <ui version="4.0"> <class>RenumberDialog</class> <widget class="QDialog" name="RenumberDialog"> + <property name="windowModality"> + <enum>Qt::WindowModal</enum> + </property> <property name="geometry"> <rect> <x>0</x> @@ -22,7 +25,16 @@ <property name="spacing"> <number>1</number> </property> - <property name="margin"> + <property name="leftMargin"> + <number>3</number> + </property> + <property name="topMargin"> + <number>3</number> + </property> + <property name="rightMargin"> + <number>3</number> + </property> + <property name="bottomMargin"> <number>3</number> </property> <item> @@ -31,17 +43,26 @@ <string>New starting number</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> - <property name="margin"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QSpinBox" name="spinBox"> - <property name="value"> - <number>1</number> - </property> <property name="maximum"> <number>99999</number> </property> + <property name="value"> + <number>1</number> + </property> </widget> </item> </layout> |