qt5base-lts/tests/manual/windowmodality/widget.ui
Bradley T. Hughes 3fa70d9c74 Update tests/manual/windowmodality to test native dialogs
Window- and ApplicationModal native dialogs need to send WindowBlocked
and WindowUnblocked events as well. This will let us test that they work
properly.

Change-Id: Iaa4ddb79bb0872f9ab1e61336a5decb262472283
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-03-30 09:31:03 +02:00

287 lines
8.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Widget</class>
<widget class="QWidget" name="Widget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>622</width>
<height>462</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Select the type of window to create:</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0" colspan="3">
<widget class="QLabel" name="topLevelWindowsLabel">
<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>Top-level Windows</string>
</property>
</widget>
</item>
<item row="15" 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>Note: Native Application Modal Dialogs use static API instead of exec()</string>
</property>
</widget>
</item>
<item row="14" column="2">
<widget class="QPushButton" name="applicationModalPrintDialogButton">
<property name="text">
<string>Print Dialog</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QPushButton" name="windowButton">
<property name="text">
<string>Window</string>
</property>
</widget>
</item>
<item row="13" column="1">
<widget class="QPushButton" name="applicationModalColorDialogButton">
<property name="text">
<string>Color Dialog</string>
</property>
</widget>
</item>
<item row="9" column="0">
<widget class="QPushButton" name="windowModalFontDialogButton">
<property name="text">
<string>Font Dialog</string>
</property>
</widget>
</item>
<item row="14" column="0">
<widget class="QPushButton" name="applicationModalFontDialogButton">
<property name="text">
<string>Font Dialog</string>
</property>
</widget>
</item>
<item row="6" column="2">
<widget class="QPushButton" name="modelessFontDialogButton">
<property name="text">
<string>Font Dialog</string>
</property>
</widget>
</item>
<item row="14" column="1">
<widget class="QPushButton" name="applicationModalPageSetupDialogButton">
<property name="text">
<string>Page Setup Dialog</string>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QPushButton" name="windowModalCustomDialogButton">
<property name="text">
<string>Custom Dialog</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QPushButton" name="windowModalPageSetupDialogButton">
<property name="text">
<string>Page Setup Dialog</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QPushButton" name="modelessColorDialogButton">
<property name="text">
<string>Color Dialog</string>
</property>
</widget>
</item>
<item row="13" column="2">
<widget class="QPushButton" name="applicationModalFileDialogButton">
<property name="text">
<string>File Dialog</string>
</property>
</widget>
</item>
<item row="7" column="0" colspan="3">
<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 Dialogs</string>
</property>
</widget>
</item>
<item row="5" 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="11" column="0" colspan="2">
<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="3" column="1">
<widget class="QPushButton" name="groupLeaderButton">
<property name="text">
<string>Window (Group Leader)</string>
</property>
</widget>
</item>
<item row="9" column="2">
<widget class="QPushButton" name="windowModalPrintDialogButton">
<property name="text">
<string>Print Dialog</string>
</property>
</widget>
</item>
<item row="10" 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>Note: Window Modal Dialogs use open()</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QPushButton" name="windowModalColorDialogButton">
<property name="text">
<string>Color Dialog</string>
</property>
</widget>
</item>
<item row="12" column="0" colspan="3">
<widget class="QCheckBox" name="applicationModalUseExecCheckBox">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Application Modal Dialogs use exec()</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="8" column="2">
<widget class="QPushButton" name="windowModalFileDialogButton">
<property name="text">
<string>File Dialog</string>
</property>
</widget>
</item>
<item row="13" column="0">
<widget class="QPushButton" name="applicationModalCustomDialogButton">
<property name="text">
<string>Custom Dialog</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QPushButton" name="modelessCustomDialogButton">
<property name="text">
<string>Custom Dialog</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<widget class="QCheckBox" name="useThisAsParentCheckBox">
<property name="text">
<string>Use this window as parent for newly created dialogs</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>