diff options
author | Nils Jeisecke <nils.jeisecke@saltation.com> | 2019-07-22 19:06:34 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-08-09 07:21:25 +0000 |
commit | 9c891bead8c14af0aa2fd10f74275e35af87b16c (patch) | |
tree | 394aacc49ff6443ed48f68074eb82aa58ff0d12e /tests/manual/qtexttableborders/widget.ui | |
parent | c595878aa34c5861b00f0c59bc4b0b6c02a54543 (diff) |
QTextDocument: add manual test for table border logic
This adds a manual test for the QTextTable border logic.
Two HTML files are bundled as resources:
table-border-test.html: Contains various test cases for the border
logic.
table-border-test-header.html: Contains a test case for printing a table
with a repeated header.
The test application allows:
- editing
- previewing
- printing
- opening the HTML in the system browser (via temp. file)
It is possible to edit the HTML with "live preview" so new test cases
can easily be implemented.
Change-Id: Ic88488bc8b7dd74d5c03c3363f55840423462325
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/manual/qtexttableborders/widget.ui')
-rw-r--r-- | tests/manual/qtexttableborders/widget.ui | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/tests/manual/qtexttableborders/widget.ui b/tests/manual/qtexttableborders/widget.ui new file mode 100644 index 0000000000..95c23be69e --- /dev/null +++ b/tests/manual/qtexttableborders/widget.ui @@ -0,0 +1,79 @@ +<?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>606</width> + <height>522</height> + </rect> + </property> + <property name="windowTitle"> + <string>QTextTable Border Manual Test</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QComboBox" name="docComboBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="printButton"> + <property name="text"> + <string>Print</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="previewButton"> + <property name="text"> + <string>Preview</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="openBrowserButton"> + <property name="text"> + <string>Open Browser</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QSplitter" name="splitter"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <widget class="QTextEdit" name="htmlEdit"/> + <widget class="QTextEdit" name="sourceEdit"/> + </widget> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <tabstops> + <tabstop>docComboBox</tabstop> + <tabstop>printButton</tabstop> + <tabstop>previewButton</tabstop> + <tabstop>openBrowserButton</tabstop> + <tabstop>htmlEdit</tabstop> + </tabstops> + <resources/> + <connections/> +</ui> |