Skip to content
Permalink
Browse files

Set modal property to true for modal dialogs. Mac modal dialogs need …

…this set to have the right appearance in Qt 4.2. Calling exec() alone provides modal behavior but not modal appearance on a Mac.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6298 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski
telwertowski committed Dec 22, 2006
1 parent 124f5ff commit 99de4abb8afbd87b18cfadbbda2e2640661ba477
@@ -1,7 +1,4 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsGrassSelectBase</class>
<widget class="QDialog" name="QgsGrassSelectBase" >
<property name="geometry" >
@@ -26,6 +23,9 @@
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>5</number>
@@ -186,10 +186,9 @@
<customwidgets>
<customwidget>
<class>Q3Frame</class>
<extends></extends>
<extends>QFrame</extends>
<header>Qt3Support/Q3Frame</header>
<container>1</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<resources/>
@@ -1,7 +1,4 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsConnectionDialogBase</class>
<widget class="QDialog" name="QgsConnectionDialogBase" >
<property name="geometry" >
@@ -18,6 +15,9 @@
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
@@ -1,7 +1,4 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsEditReservedWordsBase</class>
<widget class="QDialog" name="QgsEditReservedWordsBase" >
<property name="geometry" >
@@ -18,6 +15,9 @@
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
@@ -1,14 +1,11 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsDbSourceSelectBase</class>
<widget class="QDialog" name="QgsDbSourceSelectBase" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>433</width>
<width>494</width>
<height>481</height>
</rect>
</property>
@@ -21,6 +18,9 @@
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
@@ -210,7 +210,6 @@
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>cmbConnections</tabstop>
<tabstop>btnConnect</tabstop>
@@ -1,20 +1,20 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsGeomTypeDialogBase</class>
<widget class="QDialog" name="QgsGeomTypeDialogBase" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>383</width>
<width>400</width>
<height>427</height>
</rect>
</property>
<property name="windowTitle" >
<string>New Vector Layer</string>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
@@ -180,10 +180,8 @@
<customwidgets>
<customwidget>
<class>Q3ListView</class>
<extends></extends>
<extends>Q3Frame</extends>
<header>q3listview.h</header>
<container>0</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
@@ -1,7 +1,4 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsLayerProjectionSelectorBase</class>
<widget class="QDialog" name="QgsLayerProjectionSelectorBase" >
<property name="geometry" >
@@ -18,6 +15,9 @@
<property name="windowIcon" >
<iconset/>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
@@ -26,7 +26,7 @@
<number>6</number>
</property>
<item row="1" column="0" colspan="2" >
<widget class="QgsProjectionSelector" name="projectionSelector" />
<widget class="QgsProjectionSelector" native="1" name="projectionSelector" />
</item>
<item row="0" column="0" colspan="2" >
<widget class="QTextEdit" name="textEdit" >
@@ -87,14 +87,12 @@
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
<class>QgsProjectionSelector</class>
<extends>QWidget</extends>
<header>qgsprojectionselector.h</header>
<container>1</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<resources/>
@@ -1,7 +1,4 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsLineStyleDialogBase</class>
<widget class="QDialog" name="QgsLineStyleDialogBase" >
<property name="geometry" >
@@ -15,6 +12,9 @@
<property name="windowTitle" >
<string>Select a line style</string>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>10</number>
@@ -192,10 +192,9 @@
<customwidgets>
<customwidget>
<class>Q3ButtonGroup</class>
<extends></extends>
<extends>Q3GroupBox</extends>
<header>Qt3Support/Q3ButtonGroup</header>
<container>1</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
@@ -1,7 +1,4 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsLUDialogBase</class>
<widget class="QDialog" name="QgsLUDialogBase" >
<property name="geometry" >
@@ -15,6 +12,9 @@
<property name="windowTitle" >
<string>Enter class bounds</string>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>10</number>
@@ -1,15 +1,12 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsMapserverExportBase</class>
<widget class="QDialog" name="QgsMapserverExportBase" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>481</width>
<height>386</height>
<width>483</width>
<height>433</height>
</rect>
</property>
<property name="windowTitle" >
@@ -18,6 +15,9 @@
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>10</number>
@@ -336,10 +336,9 @@
<customwidgets>
<customwidget>
<class>Q3GroupBox</class>
<extends></extends>
<extends>QGroupBox</extends>
<header>Qt3Support/Q3GroupBox</header>
<container>1</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
@@ -1,7 +1,4 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsMessageViewer</class>
<widget class="QDialog" name="QgsMessageViewer" >
<property name="geometry" >
@@ -15,6 +12,9 @@
<property name="windowTitle" >
<string>QGIS Message</string>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
@@ -1,14 +1,11 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsNewConnectionBase</class>
<widget class="QDialog" name="QgsNewConnectionBase" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>469</width>
<width>509</width>
<height>335</height>
</rect>
</property>
@@ -26,6 +23,9 @@
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
@@ -322,7 +322,6 @@
<extends>QGroupBox</extends>
<header>Qt3Support/Q3GroupBox</header>
<container>1</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
@@ -1,15 +1,12 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>QgsNewHttpConnectionBase</class>
<widget class="QDialog" name="QgsNewHttpConnectionBase" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>255</height>
<height>256</height>
</rect>
</property>
<property name="windowTitle" >
@@ -18,6 +15,9 @@
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
@@ -293,7 +293,6 @@
<extends>QGroupBox</extends>
<header>Qt3Support/Q3GroupBox</header>
<container>1</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
@@ -18,6 +18,9 @@
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>

0 comments on commit 99de4ab

Please sign in to comment.
You can’t perform that action at this time.