diff options
Diffstat (limited to 'tests/manual/windowmodality/dialog.ui')
-rw-r--r-- | tests/manual/windowmodality/dialog.ui | 236 |
1 files changed, 210 insertions, 26 deletions
diff --git a/tests/manual/windowmodality/dialog.ui b/tests/manual/windowmodality/dialog.ui index 78d5ff3eb1..0254311566 100644 --- a/tests/manual/windowmodality/dialog.ui +++ b/tests/manual/windowmodality/dialog.ui @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>574</width> - <height>300</height> + <width>515</width> + <height>480</height> </rect> </property> <property name="windowTitle"> @@ -20,49 +20,140 @@ <string>Select the type of dialog to create:</string> </property> <layout class="QGridLayout" name="gridLayout"> - <item row="6" column="0"> - <widget class="QPushButton" name="siblingApplicationModalButton"> + <item row="0" column="0" colspan="3"> + <widget class="QCheckBox" name="useThisAsParentCheckBox"> <property name="text"> - <string>Application Modal Dialog (sibling)</string> + <string>Use this window as parent for newly created dialogs</string> + </property> + <property name="checked"> + <bool>true</bool> </property> </widget> </item> - <item row="1" column="0"> - <widget class="QPushButton" name="windowModalButton"> + <item row="3" column="0"> + <widget class="QPushButton" name="modelessCustomDialogButton"> <property name="text"> - <string>Window Modal Dialog</string> + <string>Custom Dialog</string> </property> </widget> </item> - <item row="5" column="1"> - <widget class="QPushButton" name="applicationModalNoParentButton"> + <item row="3" column="1"> + <widget class="QPushButton" name="modelessColorDialogButton"> + <property name="text"> + <string>Color Dialog</string> + </property> + </widget> + </item> + <item row="3" column="2"> + <widget class="QPushButton" name="modelessFontDialogButton"> <property name="text"> - <string>Application Modal Dialog (no parent)</string> + <string>Font Dialog</string> </property> </widget> </item> <item row="5" column="0"> - <widget class="QPushButton" name="applicationModalButton"> + <widget class="QPushButton" name="windowModalCustomDialogButton"> <property name="text"> - <string>Application Modal</string> + <string>Custom Dialog</string> </property> </widget> </item> - <item row="1" column="1"> - <widget class="QPushButton" name="windowModalNoParentButton"> + <item row="5" column="1"> + <widget class="QPushButton" name="windowModalColorDialogButton"> <property name="text"> - <string>Window Modal Dialog (no parent)</string> + <string>Color Dialog</string> </property> </widget> </item> - <item row="0" column="1"> - <widget class="QPushButton" name="modelessNoParentButton"> + <item row="5" column="2"> + <widget class="QPushButton" name="windowModalFileDialogButton"> <property name="text"> - <string>Modeless Dialog (no parent)</string> + <string>File Dialog</string> </property> </widget> </item> - <item row="4" column="0"> + <item row="6" column="0"> + <widget class="QPushButton" name="windowModalFontDialogButton"> + <property name="text"> + <string>Font Dialog</string> + </property> + </widget> + </item> + <item row="6" column="1"> + <widget class="QPushButton" name="windowModalPageSetupDialogButton"> + <property name="text"> + <string>Page Setup Dialog</string> + </property> + </widget> + </item> + <item row="6" column="2"> + <widget class="QPushButton" name="windowModalPrintDialogButton"> + <property name="text"> + <string>Print Dialog</string> + </property> + </widget> + </item> + <item row="10" column="0"> + <widget class="QPushButton" name="applicationModalCustomDialogButton"> + <property name="text"> + <string>Custom Dialog</string> + </property> + </widget> + </item> + <item row="10" column="1"> + <widget class="QPushButton" name="applicationModalColorDialogButton"> + <property name="text"> + <string>Color Dialog</string> + </property> + </widget> + </item> + <item row="10" column="2"> + <widget class="QPushButton" name="applicationModalFileDialogButton"> + <property name="text"> + <string>File Dialog</string> + </property> + </widget> + </item> + <item row="11" column="0"> + <widget class="QPushButton" name="applicationModalFontDialogButton"> + <property name="text"> + <string>Font Dialog</string> + </property> + </widget> + </item> + <item row="11" column="1"> + <widget class="QPushButton" name="applicationModalPageSetupDialogButton"> + <property name="text"> + <string>Page Setup Dialog</string> + </property> + </widget> + </item> + <item row="11" column="2"> + <widget class="QPushButton" name="applicationModalPrintDialogButton"> + <property name="text"> + <string>Print Dialog</string> + </property> + </widget> + </item> + <item row="12" column="0" colspan="3"> + <widget class="QLabel" name="applicationModalNoteLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> + <property name="text"> + <string>Native Application Modal Dialogs use static API instead of exec()</string> + </property> + </widget> + </item> + <item row="9" column="0" colspan="3"> <widget class="QCheckBox" name="applicationModalUseExecCheckBox"> <property name="font"> <font> @@ -77,17 +168,91 @@ </property> </widget> </item> - <item row="0" column="0"> - <widget class="QPushButton" name="modelessButton"> + <item row="7" column="0" colspan="3"> + <widget class="QLabel" name="windowModalNoteLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>11</pointsize> + </font> + </property> <property name="text"> - <string>Modeless Dialog</string> + <string>Native Window Modal Dialogs use open()</string> </property> </widget> </item> - <item row="3" column="0"> - <widget class="QPushButton" name="siblingWindowModalButton"> + <item row="8" column="0" colspan="3"> + <widget class="QLabel" name="applicationModalDialogsLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Application Modal Dialogs</string> + </property> + </widget> + </item> + <item row="4" column="0" colspan="2"> + <widget class="QLabel" name="windowModalDialogsLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> <property name="text"> - <string>Window Modal Dialog (sibling)</string> + <string>Window Modal Dialogs</string> + </property> + </widget> + </item> + <item row="2" column="0" colspan="3"> + <widget class="QLabel" name="modelessDialogsLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Modeless (Non-Modal) Dialogs</string> + </property> + </widget> + </item> + <item row="1" column="0" colspan="3"> + <widget class="QCheckBox" name="createSiblingDialogCheckBox"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Create new dialogs as siblings of this dialog</string> + </property> + <property name="checked"> + <bool>true</bool> </property> </widget> </item> @@ -114,6 +279,9 @@ <property name="text"> <string>Close</string> </property> + <property name="default"> + <bool>true</bool> + </property> </widget> </item> </layout> @@ -138,5 +306,21 @@ </hint> </hints> </connection> + <connection> + <sender>useThisAsParentCheckBox</sender> + <signal>toggled(bool)</signal> + <receiver>createSiblingDialogCheckBox</receiver> + <slot>setDisabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>260</x> + <y>39</y> + </hint> + <hint type="destinationlabel"> + <x>260</x> + <y>60</y> + </hint> + </hints> + </connection> </connections> </ui> |