diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-10-14 17:28:33 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-10-19 11:42:44 +0000 |
commit | 70422a94d9b9c387db47ddcc9204fa37a8e24807 (patch) | |
tree | 59418e5fedadb788dc27b5d9b210f70fa48e16e7 /tests/manual/jumplist/testwidget.ui | |
parent | ccbed88825cef76545e1e3a47c92fb237e4beeb9 (diff) |
Improve the manual test for QWinJumpList.
- Use a QMainWindow to be able to use shortcuts
and status bar.
- Add menu entries for launching the jumplistsview
tool and explorer.
- Reformat/streamline code.
- Add support for more mime types.
- Use QCommandLineParser
Task-number: QTBUG-48751
Change-Id: I7242c528069f1838bd6af1f9bc426193f0fc7dec
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
Diffstat (limited to 'tests/manual/jumplist/testwidget.ui')
-rw-r--r-- | tests/manual/jumplist/testwidget.ui | 385 |
1 files changed, 212 insertions, 173 deletions
diff --git a/tests/manual/jumplist/testwidget.ui b/tests/manual/jumplist/testwidget.ui index 82b9a0d..abcb078 100644 --- a/tests/manual/jumplist/testwidget.ui +++ b/tests/manual/jumplist/testwidget.ui @@ -1,196 +1,235 @@ <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>TestWidget</class> - <widget class="QWidget" name="TestWidget"> + <widget class="QMainWindow" name="TestWidget"> <property name="geometry"> <rect> <x>0</x> <y>0</y> - <width>695</width> - <height>394</height> + <width>800</width> + <height>600</height> </rect> </property> - <property name="windowTitle"> - <string>QtWinExtras JumpList</string> - </property> - <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,1"> - <property name="spacing"> - <number>3</number> - </property> - <property name="margin"> - <number>3</number> + <widget class="QWidget" name="centralwidget"> + <property name="windowTitle"> + <string>QtWinExtras JumpList</string> </property> - <item> - <layout class="QVBoxLayout" name="verticalLayout_2"> - <item> - <widget class="QGroupBox" name="groupBox"> - <property name="title"> - <string>Known categories</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout"> - <property name="spacing"> - <number>3</number> - </property> - <property name="margin"> - <number>3</number> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QGroupBox" name="groupBox"> + <property name="title"> + <string>Known categories</string> </property> - <item> - <widget class="QCheckBox" name="cbShowFrequent"> - <property name="text"> - <string>Frequent</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="cbShowRecent"> - <property name="text"> - <string>Recent</string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBox_2"> - <property name="title"> - <string>Tasks</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout_3"> - <property name="spacing"> - <number>3</number> - </property> - <property name="margin"> - <number>3</number> - </property> - <item> - <widget class="QCheckBox" name="cbRunFullscreen"> - <property name="text"> - <string>Run in fullscreen</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="cbRunFusion"> - <property name="text"> - <string>Run with Fusion style</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="cbRunText"> - <property name="text"> - <string>Run with some text displayed</string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_3"> - <item> - <spacer name="horizontalSpacer_2"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> + <layout class="QVBoxLayout" name="verticalLayout"> + <property name="spacing"> + <number>3</number> + </property> + <property name="leftMargin"> + <number>3</number> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> + <property name="topMargin"> + <number>3</number> </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="btnUpdate"> - <property name="text"> - <string>Update</string> + <property name="rightMargin"> + <number>3</number> </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_3"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> + <property name="bottomMargin"> + <number>3</number> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> + <item> + <widget class="QCheckBox" name="cbShowFrequent"> + <property name="text"> + <string>Frequent</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="cbShowRecent"> + <property name="text"> + <string>Recent</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="groupBox_2"> + <property name="title"> + <string>Tasks</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <property name="spacing"> + <number>3</number> </property> - </spacer> - </item> - </layout> - </item> - <item> - <spacer name="verticalSpacer"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_4"> - <property name="spacing"> - <number>3</number> - </property> - <item> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QPushButton" name="btnOpenFile"> - <property name="text"> - <string>Open a file</string> + <property name="leftMargin"> + <number>3</number> </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> + <property name="topMargin"> + <number>3</number> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> + <property name="rightMargin"> + <number>3</number> </property> - </spacer> - </item> - <item> - <widget class="QPushButton" name="btnClose"> - <property name="text"> - <string>Close</string> + <property name="bottomMargin"> + <number>3</number> </property> - </widget> - </item> - </layout> - </item> - <item> - <widget class="QTextEdit" name="text"> - <property name="font"> - <font> - <family>Consolas</family> - <pointsize>10</pointsize> - </font> - </property> - <property name="readOnly"> - <bool>true</bool> - </property> - </widget> - </item> - </layout> - </item> - </layout> + <item> + <widget class="QCheckBox" name="cbRunFullscreen"> + <property name="text"> + <string>Run in fullscreen</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="cbRunFusion"> + <property name="text"> + <string>Run with Fusion style</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="cbRunText"> + <property name="text"> + <string>Run with some text displayed</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QTextEdit" name="text"> + <property name="font"> + <font> + <family>Consolas</family> + <pointsize>10</pointsize> + </font> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QMenuBar" name="menuBar"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>800</width> + <height>21</height> + </rect> + </property> + <widget class="QMenu" name="menuFile"> + <property name="title"> + <string>File</string> + </property> + <addaction name="actionOpen"/> + <addaction name="actionExit"/> + </widget> + <widget class="QMenu" name="menuJumplist"> + <property name="title"> + <string>Jumplist</string> + </property> + <addaction name="actionUpdate"/> + <addaction name="actionShow_in_Explorer"/> + <addaction name="actionRun_JumpListView"/> + </widget> + <widget class="QMenu" name="menuSettings"> + <property name="title"> + <string>Settings</string> + </property> + <addaction name="actionUse_Native_File_Dialog"/> + </widget> + <addaction name="menuFile"/> + <addaction name="menuJumplist"/> + <addaction name="menuSettings"/> + </widget> + <action name="actionOpen"> + <property name="text"> + <string>Open</string> + </property> + <property name="shortcut"> + <string>Ctrl+O</string> + </property> + </action> + <action name="actionExit"> + <property name="text"> + <string>Exit</string> + </property> + <property name="shortcut"> + <string>Ctrl+Q</string> + </property> + </action> + <action name="actionUpdate"> + <property name="text"> + <string>Update</string> + </property> + <property name="shortcut"> + <string>Ctrl+U</string> + </property> + </action> + <action name="actionShow_in_Explorer"> + <property name="text"> + <string>Show in Explorer</string> + </property> + <property name="shortcut"> + <string>Ctrl+E</string> + </property> + </action> + <action name="actionRun_JumpListView"> + <property name="text"> + <string>Run JumpListView</string> + </property> + <property name="toolTip"> + <string>Run JumpListView utility</string> + </property> + </action> + <action name="actionUse_Native_File_Dialog"> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="checked"> + <bool>true</bool> + </property> + <property name="text"> + <string>Use Native File Dialog</string> + </property> + </action> </widget> <layoutdefault spacing="6" margin="11"/> <resources/> |