aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/CMakeLists.txt15
-rw-r--r--tests/manual/buttons/ButtonLoader.qml101
-rw-r--r--tests/manual/buttons/CMakeLists.txt36
-rw-r--r--tests/manual/buttons/buttons.cpp61
-rw-r--r--tests/manual/buttons/buttons.pro6
-rw-r--r--tests/manual/buttons/buttons.qml150
-rw-r--r--tests/manual/dialogs/CMakeLists.txt35
-rw-r--r--tests/manual/dialogs/CustomDialog.qml74
-rw-r--r--tests/manual/dialogs/DialogLabel.qml60
-rw-r--r--tests/manual/dialogs/Marker.qml68
-rw-r--r--tests/manual/dialogs/dialogs.cpp62
-rw-r--r--tests/manual/dialogs/dialogs.pro11
-rw-r--r--tests/manual/dialogs/dialogs.qml247
-rw-r--r--tests/manual/dialogs/qtquickcontrols2.conf6
-rw-r--r--tests/manual/fonts/CMakeLists.txt44
-rw-r--r--tests/manual/fonts/deployment.pri14
-rw-r--r--tests/manual/fonts/fonts.pro14
-rw-r--r--tests/manual/fonts/main.cpp49
-rw-r--r--tests/manual/fonts/main.qml102
-rw-r--r--tests/manual/fonts/qml.qrc6
-rw-r--r--tests/manual/gifs/CMakeLists.txt29
-rw-r--r--tests/manual/gifs/capturedevent.cpp113
-rw-r--r--tests/manual/gifs/capturedevent.h67
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-busyindicator.qml67
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-button-flat.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-button-highlighted.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-button.qml65
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-checkbox-tristate.qml87
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-checkbox.qml82
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-checkdelegate-tristate.qml91
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-checkdelegate.qml74
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-combobox.qml69
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-delaybutton.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml67
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-drawer.qml99
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-itemdelegate.qml73
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-menu.qml85
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-progressbar-indeterminate.qml67
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-progressbar.qml81
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-radiobutton.qml83
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-radiodelegate.qml80
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-rangeslider.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-scrollbar-snap.qml71
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-scrollbar.qml80
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-scrollindicator.qml77
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-slider-snap.qml89
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-slider.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-stackview-pop.qml112
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-stackview-push.qml107
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-stackview-replace.qml112
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-stackview-unwind.qml112
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-swipedelegate-behind.qml81
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-swipedelegate-leading-trailing.qml93
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-swipedelegate.qml92
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-swipeview.qml99
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-switch.qml64
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-switchdelegate.qml74
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-tabbar.qml68
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml104
-rw-r--r--tests/manual/gifs/eventcapturer.cpp236
-rw-r--r--tests/manual/gifs/eventcapturer.h97
-rw-r--r--tests/manual/gifs/gifrecorder.cpp327
-rw-r--r--tests/manual/gifs/gifrecorder.h92
-rw-r--r--tests/manual/gifs/gifs.pro20
-rw-r--r--tests/manual/gifs/tst_gifs.cpp1052
-rw-r--r--tests/manual/headerview/CMakeLists.txt48
-rw-r--r--tests/manual/headerview/headerview.pro10
-rw-r--r--tests/manual/headerview/main.cpp217
-rw-r--r--tests/manual/headerview/main.qml126
-rw-r--r--tests/manual/manual.pro13
-rw-r--r--tests/manual/nativestyle/.gitignore73
-rw-r--r--tests/manual/nativestyle/Buttons.qml100
-rw-r--r--tests/manual/nativestyle/CMakeLists.txt84
-rw-r--r--tests/manual/nativestyle/CheckBoxes.qml75
-rw-r--r--tests/manual/nativestyle/ComboBoxes.qml94
-rw-r--r--tests/manual/nativestyle/ControlContainer.qml62
-rw-r--r--tests/manual/nativestyle/CustomButtons.qml96
-rw-r--r--tests/manual/nativestyle/CustomCheckBoxes.qml137
-rw-r--r--tests/manual/nativestyle/CustomComboBoxes.qml122
-rw-r--r--tests/manual/nativestyle/CustomDials.qml87
-rw-r--r--tests/manual/nativestyle/CustomFrames.qml62
-rw-r--r--tests/manual/nativestyle/CustomProgressBars.qml83
-rw-r--r--tests/manual/nativestyle/CustomRadioButtons.qml121
-rw-r--r--tests/manual/nativestyle/CustomScrollBars.qml137
-rw-r--r--tests/manual/nativestyle/CustomSliders.qml167
-rw-r--r--tests/manual/nativestyle/CustomSpinBoxes.qml171
-rw-r--r--tests/manual/nativestyle/CustomTextAreas.qml71
-rw-r--r--tests/manual/nativestyle/CustomTextFields.qml63
-rw-r--r--tests/manual/nativestyle/Dials.qml66
-rw-r--r--tests/manual/nativestyle/Frames.qml65
-rw-r--r--tests/manual/nativestyle/ProgressBars.qml102
-rw-r--r--tests/manual/nativestyle/RadioButtons.qml111
-rw-r--r--tests/manual/nativestyle/ScrollBars.qml99
-rw-r--r--tests/manual/nativestyle/Sliders.qml153
-rw-r--r--tests/manual/nativestyle/SlidersMini.qml140
-rw-r--r--tests/manual/nativestyle/SlidersSmall.qml140
-rw-r--r--tests/manual/nativestyle/SpinBoxes.qml74
-rw-r--r--tests/manual/nativestyle/TextAreas.qml131
-rw-r--r--tests/manual/nativestyle/TextFields.qml71
-rw-r--r--tests/manual/nativestyle/checkbox-icon.pngbin258 -> 0 bytes
-rw-r--r--tests/manual/nativestyle/checkbox-icon16.pngbin230 -> 0 bytes
-rw-r--r--tests/manual/nativestyle/checkbox-icon@2x.pngbin336 -> 0 bytes
-rw-r--r--tests/manual/nativestyle/main.cpp55
-rw-r--r--tests/manual/nativestyle/main.qml121
-rw-r--r--tests/manual/nativestyle/nativestyle.pro39
-rw-r--r--tests/manual/nativestyle/qml.qrc7
-rw-r--r--tests/manual/screenshots/CMakeLists.txt34
-rw-r--r--tests/manual/screenshots/qtquickcontrols2.conf5
-rw-r--r--tests/manual/screenshots/screenshots.cpp72
-rw-r--r--tests/manual/screenshots/screenshots.pro13
-rw-r--r--tests/manual/screenshots/screenshots.qml174
-rw-r--r--tests/manual/shared/FontAwesome.otfbin106260 -> 0 bytes
-rw-r--r--tests/manual/shared/FontAwesome.qml746
-rw-r--r--tests/manual/shared/FontAwesomeIcon.qml58
-rw-r--r--tests/manual/shared/qmldir4
-rw-r--r--tests/manual/shared/shared.qrc8
-rw-r--r--tests/manual/styles-cover-flow/CMakeLists.txt38
-rw-r--r--tests/manual/styles-cover-flow/CoverFlowDelegate.qml136
-rw-r--r--tests/manual/styles-cover-flow/CoverFlowPath.qml157
-rw-r--r--tests/manual/styles-cover-flow/styles-cover-flow.cpp66
-rw-r--r--tests/manual/styles-cover-flow/styles-cover-flow.pro11
-rw-r--r--tests/manual/styles-cover-flow/styles-cover-flow.qml100
-rw-r--r--tests/manual/styles/CMakeLists.txt31
-rw-r--r--tests/manual/styles/styles.cpp64
-rw-r--r--tests/manual/styles/styles.pro9
-rw-r--r--tests/manual/styles/styles.qml115
-rw-r--r--tests/manual/systemtrayicon/CMakeLists.txt32
-rw-r--r--tests/manual/systemtrayicon/images/qt_logo_green_256.pngbin3118 -> 0 bytes
-rw-r--r--tests/manual/systemtrayicon/systemtrayicon.cpp64
-rw-r--r--tests/manual/systemtrayicon/systemtrayicon.pro9
-rw-r--r--tests/manual/systemtrayicon/systemtrayicon.qml89
-rw-r--r--tests/manual/systemtrayicon/systemtrayicon.qrc6
-rw-r--r--tests/manual/testbench/+Imagine/ApplicationWindow.qml55
-rw-r--r--tests/manual/testbench/+Imagine/ContentPane.qml55
-rw-r--r--tests/manual/testbench/+Imagine/Dialog.qml55
-rw-r--r--tests/manual/testbench/+Imagine/Menu.qml55
-rw-r--r--tests/manual/testbench/+Imagine/ToolBar.qml57
-rw-r--r--tests/manual/testbench/.gitignore83
-rw-r--r--tests/manual/testbench/ApplicationWindow.qml53
-rw-r--r--tests/manual/testbench/CMakeLists.txt109
-rw-r--r--tests/manual/testbench/ColorEditor.qml80
-rw-r--r--tests/manual/testbench/ContentPane.qml53
-rw-r--r--tests/manual/testbench/ControlContainer.qml70
-rw-r--r--tests/manual/testbench/Dialog.qml53
-rw-r--r--tests/manual/testbench/ExampleContainer.qml83
-rw-r--r--tests/manual/testbench/Menu.qml53
-rw-r--r--tests/manual/testbench/README.md35
-rw-r--r--tests/manual/testbench/SettingsDialog.qml447
-rw-r--r--tests/manual/testbench/ToolBar.qml53
-rw-r--r--tests/manual/testbench/assetfixer.cpp564
-rw-r--r--tests/manual/testbench/assetfixer.h126
-rw-r--r--tests/manual/testbench/clipboard.cpp124
-rw-r--r--tests/manual/testbench/clipboard.h72
-rw-r--r--tests/manual/testbench/controls/BusyIndicator.qml65
-rw-r--r--tests/manual/testbench/controls/Button.qml90
-rw-r--r--tests/manual/testbench/controls/CheckBox.qml74
-rw-r--r--tests/manual/testbench/controls/CheckDelegate.qml87
-rw-r--r--tests/manual/testbench/controls/ComboBox.qml71
-rw-r--r--tests/manual/testbench/controls/DelayButton.qml72
-rw-r--r--tests/manual/testbench/controls/Dial.qml65
-rw-r--r--tests/manual/testbench/controls/Dialog.qml87
-rw-r--r--tests/manual/testbench/controls/Frame.qml64
-rw-r--r--tests/manual/testbench/controls/GroupBox.qml66
-rw-r--r--tests/manual/testbench/controls/ItemDelegate.qml84
-rw-r--r--tests/manual/testbench/controls/Label.qml66
-rw-r--r--tests/manual/testbench/controls/Menu.qml121
-rw-r--r--tests/manual/testbench/controls/MenuBar.qml79
-rw-r--r--tests/manual/testbench/controls/Page.qml68
-rw-r--r--tests/manual/testbench/controls/PageIndicator.qml111
-rw-r--r--tests/manual/testbench/controls/Pane.qml68
-rw-r--r--tests/manual/testbench/controls/ProgressBar.qml66
-rw-r--r--tests/manual/testbench/controls/RadioButton.qml73
-rw-r--r--tests/manual/testbench/controls/RadioDelegate.qml86
-rw-r--r--tests/manual/testbench/controls/RangeSlider.qml69
-rw-r--r--tests/manual/testbench/controls/RoundButton.qml88
-rw-r--r--tests/manual/testbench/controls/ScrollBar.qml114
-rw-r--r--tests/manual/testbench/controls/ScrollIndicator.qml104
-rw-r--r--tests/manual/testbench/controls/Slider.qml69
-rw-r--r--tests/manual/testbench/controls/SpinBox.qml78
-rw-r--r--tests/manual/testbench/controls/SplitView.qml79
-rw-r--r--tests/manual/testbench/controls/SwipeDelegate.qml106
-rw-r--r--tests/manual/testbench/controls/Switch.qml76
-rw-r--r--tests/manual/testbench/controls/SwitchDelegate.qml86
-rw-r--r--tests/manual/testbench/controls/TabBar.qml81
-rw-r--r--tests/manual/testbench/controls/TextArea.qml73
-rw-r--r--tests/manual/testbench/controls/TextField.qml73
-rw-r--r--tests/manual/testbench/controls/ToolBar.qml87
-rw-r--r--tests/manual/testbench/controls/ToolTip.qml67
-rw-r--r--tests/manual/testbench/controls/Tumbler.qml67
-rw-r--r--tests/manual/testbench/deployment.pri14
-rw-r--r--tests/manual/testbench/directoryvalidator.cpp102
-rw-r--r--tests/manual/testbench/directoryvalidator.h84
-rw-r--r--tests/manual/testbench/fonts.qrc5
-rw-r--r--tests/manual/testbench/fonts/LICENSE.txt12
-rw-r--r--tests/manual/testbench/fonts/fontawesome.ttfbin5464 -> 0 bytes
-rw-r--r--tests/manual/testbench/main.cpp94
-rw-r--r--tests/manual/testbench/qml.qrc55
-rw-r--r--tests/manual/testbench/testbench.pro24
-rw-r--r--tests/manual/testbench/testbench.qml533
-rw-r--r--tests/manual/viewinqwidget/CMakeLists.txt35
-rw-r--r--tests/manual/viewinqwidget/main.cpp91
-rw-r--r--tests/manual/viewinqwidget/main.qml49
-rw-r--r--tests/manual/viewinqwidget/viewinqwidget.pro6
-rw-r--r--tests/manual/viewinqwidget/viewinqwidget.qrc5
205 files changed, 0 insertions, 18153 deletions
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt
deleted file mode 100644
index 79d19753..00000000
--- a/tests/manual/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-# Generated from manual.pro.
-
-add_subdirectory(buttons)
-add_subdirectory(gifs)
-add_subdirectory(fonts)
-add_subdirectory(headerview)
-add_subdirectory(screenshots)
-add_subdirectory(styles)
-add_subdirectory(testbench)
-if(QT_FEATURE_systemtrayicon)
- add_subdirectory(systemtrayicon)
-endif()
-if(TARGET Qt::Widgets)
- add_subdirectory(viewinqwidget)
-endif()
diff --git a/tests/manual/buttons/ButtonLoader.qml b/tests/manual/buttons/ButtonLoader.qml
deleted file mode 100644
index ecbf637b..00000000
--- a/tests/manual/buttons/ButtonLoader.qml
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-Item {
- id: root
- implicitWidth: activeButton.implicitWidth
- implicitHeight: activeButton.implicitHeight
-
- property bool round: false
-
- property string text
- property bool flat
- property bool hoverEnabled
- property bool highlighted
- property bool checked
- property var down: undefined
-
- property AbstractButton activeButton: round ? roundButton : button
-
- Button {
- id: button
- visible: !round
- text: root.text
- flat: root.flat
- hoverEnabled: root.hoverEnabled
- highlighted: root.highlighted
- checked: root.checked
- down: root.down
- enabled: root.enabled
- }
-
- RoundButton {
- id: roundButton
- visible: round
- text: "\u2713"
- flat: root.flat
- hoverEnabled: root.hoverEnabled
- highlighted: root.highlighted
- checked: root.checked
- down: root.down
- enabled: root.enabled
-
- Label {
- text: root.text
- font.pixelSize: roundButton.font.pixelSize * 0.5
- anchors.top: parent.bottom
- anchors.topMargin: 2
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/tests/manual/buttons/CMakeLists.txt b/tests/manual/buttons/CMakeLists.txt
deleted file mode 100644
index e57611a5..00000000
--- a/tests/manual/buttons/CMakeLists.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-# Generated from buttons.pro.
-
-#####################################################################
-## buttons Binary:
-#####################################################################
-
-qt_internal_add_manual_test(buttons
- GUI
- SOURCES
- buttons.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Qml
- Qt::QuickControls2
-)
-
-file(GLOB resource_glob_0 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.qml")
-foreach(file IN LISTS resource_glob_0)
- set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/${file}" PROPERTIES QT_RESOURCE_ALIAS "${file}")
-endforeach()
-
-# Resources:
-set(qmake_immediate_resource_files
- ${resource_glob_0}
-)
-
-qt_internal_add_resource(buttons "qmake_immediate"
- PREFIX
- "/"
- FILES
- ${qmake_immediate_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:buttons.pro:<TRUE>:
-# TEMPLATE = "app"
diff --git a/tests/manual/buttons/buttons.cpp b/tests/manual/buttons/buttons.cpp
deleted file mode 100644
index 0272522a..00000000
--- a/tests/manual/buttons/buttons.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/buttons.qml"));
-
- return app.exec();
-}
diff --git a/tests/manual/buttons/buttons.pro b/tests/manual/buttons/buttons.pro
deleted file mode 100644
index 2cb1c14c..00000000
--- a/tests/manual/buttons/buttons.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-TEMPLATE = app
-TARGET = buttons
-QT += qml quickcontrols2
-
-SOURCES += buttons.cpp
-RESOURCES += $$files(*.qml)
diff --git a/tests/manual/buttons/buttons.qml b/tests/manual/buttons/buttons.qml
deleted file mode 100644
index 26969440..00000000
--- a/tests/manual/buttons/buttons.qml
+++ /dev/null
@@ -1,150 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Controls.Material
-import QtQuick.Controls.Universal
-
-ApplicationWindow {
- id: window
- visible: true
- title: "Buttons"
-
- Component.onCompleted: {
- var pane = repeater.itemAt(0)
- width = pane.implicitWidth * 2 + flickable.leftMargin + flickable.rightMargin + flow.spacing
- height = header.height + pane.implicitHeight * 2 + flickable.topMargin + flickable.bottomMargin + flow.spacing
- }
-
- header: ToolBar {
- Row {
- spacing: 20
- anchors.right: parent.right
- CheckBox {
- id: hoverBox
- text: "Hover"
- checked: true
- }
- CheckBox {
- id: roundBox
- text: "Round"
- checked: false
- }
- }
- }
-
- Flickable {
- id: flickable
- anchors.fill: parent
-
- topMargin: 40
- leftMargin: 40
- rightMargin: 40
- bottomMargin: 40
-
- contentHeight: flow.implicitHeight
-
- Flow {
- id: flow
- spacing: 40
- width: flickable.width - flickable.leftMargin - flickable.rightMargin
-
- Repeater {
- id: repeater
-
- model: [
- { title: "Normal", theme: Material.Light, flat: false },
- { title: "Flat", theme: Material.Light, flat: true },
- { title: "Normal", theme: Material.Dark, flat: false },
- { title: "Flat", theme: Material.Dark, flat: true }
- ]
-
- Pane {
- Material.elevation: 8
- Material.theme: modelData.theme
- Universal.theme: modelData.theme
-
- GroupBox {
- title: modelData.title
- background.visible: false
-
- Grid {
- columns: 4
- spacing: 20
- padding: 20
-
- ButtonLoader { text: "Normal"; flat: modelData.flat; hoverEnabled: hoverBox.checked; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; enabled: false; round: roundBox.checked }
- ButtonLoader { text: "Down"; flat: modelData.flat; hoverEnabled: hoverBox.checked; down: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; down: true; enabled: false; round: roundBox.checked }
-
- ButtonLoader { text: "Checked"; flat: modelData.flat; hoverEnabled: hoverBox.checked; checked: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; checked: true; enabled: false; round: roundBox.checked }
- ButtonLoader { text: "Down"; flat: modelData.flat; hoverEnabled: hoverBox.checked; checked: true; down: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; checked: true; down: true; enabled: false; round: roundBox.checked }
-
- ButtonLoader { text: "Highlighted"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; enabled: false; round: roundBox.checked }
- ButtonLoader { text: "Down"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; down: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; down: true; enabled: false; round: roundBox.checked }
-
- ButtonLoader { text: "Hi-checked"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; checked: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; checked: true; enabled: false; round: roundBox.checked }
- ButtonLoader { text: "Down"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; checked: true; down: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; checked: true; down: true; enabled: false; round: roundBox.checked }
- }
- }
- }
- }
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
-}
diff --git a/tests/manual/dialogs/CMakeLists.txt b/tests/manual/dialogs/CMakeLists.txt
deleted file mode 100644
index b0fe5dd5..00000000
--- a/tests/manual/dialogs/CMakeLists.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-# Generated from dialogs.pro.
-
-#####################################################################
-## dialogs Binary:
-#####################################################################
-
-qt_internal_add_manual_test(dialogs
- GUI
- SOURCES
- dialogs.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Qml
- Qt::QuickControls2
-)
-
-# Resources:
-set(qmake_immediate_resource_files
- "CustomDialog.qml"
- "DialogLabel.qml"
- "Marker.qml"
- "dialogs.qml"
- "qtquickcontrols2.conf"
-)
-
-qt_internal_add_resource(dialogs "qmake_immediate"
- PREFIX
- "/"
- FILES
- ${qmake_immediate_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:dialogs.pro:<TRUE>:
-# TEMPLATE = "app"
diff --git a/tests/manual/dialogs/CustomDialog.qml b/tests/manual/dialogs/CustomDialog.qml
deleted file mode 100644
index fb191c9f..00000000
--- a/tests/manual/dialogs/CustomDialog.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls
-
-Dialog {
- id: root
- x: previousDialog ? previousDialog.x + previousDialog.width + space : 0
- y: previousDialog ? previousDialog.y : 0
- closePolicy: Dialog.NoAutoClose
- visible: true
-
- property Dialog previousDialog
- property int space: dialogSpacing
-
- Marker {
- parent: root.footer.contentItem
- visible: visualizeDialogButtonBoxContentItem
- text: "footer.contentItem"
- }
- Marker {
- parent: root.footer
- visible: visualizeDialogButtonBox
- text: "footer"
- border.color: "red"
- }
-}
diff --git a/tests/manual/dialogs/DialogLabel.qml b/tests/manual/dialogs/DialogLabel.qml
deleted file mode 100644
index 3a1533eb..00000000
--- a/tests/manual/dialogs/DialogLabel.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls
-
-Label {
- x: dialog.x + (dialog.width - width) / 2
- y: dialog.y - height
- width: dialog.width
- wrapMode: Label.Wrap
-
- property Dialog dialog
-}
diff --git a/tests/manual/dialogs/Marker.qml b/tests/manual/dialogs/Marker.qml
deleted file mode 100644
index cd93d055..00000000
--- a/tests/manual/dialogs/Marker.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-
-Rectangle {
- anchors.fill: parent
- color: "transparent"
- border.color: "darkorange"
-
- property alias text: label.text
-
- Text {
- id: label
- font.pixelSize: Qt.application.font.pixelSize * 0.6
- color: parent.border.color
- anchors.left: parent.left
- anchors.bottom: parent.bottom
- anchors.margins: 4
- }
-}
diff --git a/tests/manual/dialogs/dialogs.cpp b/tests/manual/dialogs/dialogs.cpp
deleted file mode 100644
index 79d26c2b..00000000
--- a/tests/manual/dialogs/dialogs.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/dialogs.qml"));
-
- return app.exec();
-}
diff --git a/tests/manual/dialogs/dialogs.pro b/tests/manual/dialogs/dialogs.pro
deleted file mode 100644
index 4863923f..00000000
--- a/tests/manual/dialogs/dialogs.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-TARGET = dialogs
-QT += qml quickcontrols2
-
-SOURCES += dialogs.cpp
-RESOURCES += \
- qtquickcontrols2.conf \
- dialogs.qml \
- Marker.qml \
- CustomDialog.qml \
- DialogLabel.qml
diff --git a/tests/manual/dialogs/dialogs.qml b/tests/manual/dialogs/dialogs.qml
deleted file mode 100644
index e7c8c2e1..00000000
--- a/tests/manual/dialogs/dialogs.qml
+++ /dev/null
@@ -1,247 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ApplicationWindow {
- id: window
- width: 1200
- height: 800
- title: "Buttons"
- visible: true
-
- property alias visualizeDialogButtonBoxContentItem: visualizeDialogButtonBoxContentItemMenuItem.checked
- property alias visualizeDialogButtonBox: visualizeDialogButtonBoxMenuItem.checked
-
- property int dialogSpacing: 60
-
- header: ToolBar {
- RowLayout {
- anchors.fill: parent
- Item {
- Layout.fillWidth: true
- }
-
- ToolButton {
- text: "Settings"
- onClicked: settingsMenu.open()
-
- Menu {
- id: settingsMenu
- width: 400
-
- MenuItem {
- id: visualizeDialogButtonBoxContentItemMenuItem
- text: "Visualize DialogButtonBox contentItem"
- checkable: true
- }
-
- MenuItem {
- id: visualizeDialogButtonBoxMenuItem
- text: "Visualize DialogButtonBox"
- checkable: true
- }
- }
- }
- }
- }
-
-
- DialogLabel {
- text: "implicit width"
- dialog: dialogImplicitWidthNoButtons
- width: 100
- }
- CustomDialog {
- id: dialogImplicitWidthNoButtons
- x: dialogSpacing
- y: dialogSpacing
- space: 200
- }
-
- DialogLabel {
- text: "title, implicit width"
- dialog: dialogImplicitWidthTitleNoButtons
- width: 150
- }
- CustomDialog {
- id: dialogImplicitWidthTitleNoButtons
- y: dialogSpacing
- title: "Test"
- previousDialog: dialogImplicitWidthNoButtons
- space: 200
- }
-
- DialogLabel {
- text: "title, fixed width"
- dialog: dialogFixedWidthTitleNoButtons
- }
- CustomDialog {
- id: dialogFixedWidthTitleNoButtons
- y: dialogSpacing
- width: 300
- title: "Test"
- previousDialog: dialogImplicitWidthTitleNoButtons
- space: 200
- }
-
-
- DialogLabel {
- text: "one standard button, implicit width"
- dialog: dialogImplicitWidthOneButton
- }
- CustomDialog {
- id: dialogImplicitWidthOneButton
- x: dialogSpacing
- y: dialogFixedWidthTitleNoButtons.y + dialogFixedWidthTitleNoButtons.height + dialogSpacing
- standardButtons: Dialog.Ok
- }
-
- DialogLabel {
- text: "two standard buttons, implicit width"
- dialog: dialogImplicitWidthTwoButtons
- }
- CustomDialog {
- id: dialogImplicitWidthTwoButtons
- standardButtons: Dialog.Ok | Dialog.Cancel
- previousDialog: dialogImplicitWidthOneButton
- }
-
- DialogLabel {
- text: "three standard buttons, implicit width"
- dialog: dialogImplicitWidthThreeButtons
- }
- CustomDialog {
- id: dialogImplicitWidthThreeButtons
- standardButtons: Dialog.Apply | Dialog.RestoreDefaults | Dialog.Cancel
- previousDialog: dialogImplicitWidthTwoButtons
- }
-
-
- DialogLabel {
- text: "text, one standard button, implicit width"
- dialog: dialogTextImplicitWidthOneButton
- }
- CustomDialog {
- id: dialogTextImplicitWidthOneButton
- x: dialogSpacing
- y: dialogImplicitWidthThreeButtons.y + dialogImplicitWidthThreeButtons.height + dialogSpacing
- standardButtons: Dialog.Ok
-
- Label {
- text: "A Label"
- }
- }
-
- DialogLabel {
- text: "text, two standard buttons, implicit width"
- dialog: dialogTextImplicitWidthTwoButtons
- }
- CustomDialog {
- id: dialogTextImplicitWidthTwoButtons
- standardButtons: Dialog.Ok | Dialog.Cancel
- previousDialog: dialogTextImplicitWidthOneButton
-
- Label {
- text: "A Label"
- }
- }
-
- DialogLabel {
- text: "text, three standard buttons, implicit width"
- dialog: dialogTextImplicitWidthThreeButtons
- }
- CustomDialog {
- id: dialogTextImplicitWidthThreeButtons
- standardButtons: Dialog.Apply | Dialog.RestoreDefaults | Dialog.Cancel
- previousDialog: dialogTextImplicitWidthTwoButtons
-
- Label {
- text: "A Label"
- }
- }
-
-
- DialogLabel {
- text: "one standard button, fixed width (300)"
- dialog: dialogFixedWidthOneButton
- }
- CustomDialog {
- id: dialogFixedWidthOneButton
- x: dialogSpacing
- y: dialogTextImplicitWidthThreeButtons.y + dialogTextImplicitWidthThreeButtons.height + dialogSpacing
- width: 300
- standardButtons: Dialog.Ok
- }
-
- DialogLabel {
- text: "two standard buttons, fixed width (300)"
- dialog: dialogFixedWidthTwoButtons
- }
- CustomDialog {
- id: dialogFixedWidthTwoButtons
- width: 300
- standardButtons: Dialog.Ok | Dialog.Cancel
- previousDialog: dialogFixedWidthOneButton
- }
-
- DialogLabel {
- text: "three standard buttons, fixed width (300)"
- dialog: dialogFixedWidthThreeButtons
- }
- CustomDialog {
- id: dialogFixedWidthThreeButtons
- width: 300
- standardButtons: Dialog.Apply | Dialog.RestoreDefaults | Dialog.Cancel
- previousDialog: dialogFixedWidthTwoButtons
- }
-}
diff --git a/tests/manual/dialogs/qtquickcontrols2.conf b/tests/manual/dialogs/qtquickcontrols2.conf
deleted file mode 100644
index 53f380bf..00000000
--- a/tests/manual/dialogs/qtquickcontrols2.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=Basic
-;Style=Fusion
-;Style=Imagine
-;Style=Material
-;Style=Universal
diff --git a/tests/manual/fonts/CMakeLists.txt b/tests/manual/fonts/CMakeLists.txt
deleted file mode 100644
index b0670fe2..00000000
--- a/tests/manual/fonts/CMakeLists.txt
+++ /dev/null
@@ -1,44 +0,0 @@
-# Generated from fonts.pro.
-
-#####################################################################
-## fonts Binary:
-#####################################################################
-
-qt_internal_add_manual_test(fonts
- GUI
- SOURCES
- main.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Qml
- Qt::Quick
-)
-
-# Resources:
-set(qml_resource_files
- "main.qml"
-)
-
-qt_internal_add_resource(fonts "qml"
- PREFIX
- "/"
- FILES
- ${qml_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:fonts.pro:<TRUE>:
-# QML_IMPORT_PATH = <EMPTY>
-# TEMPLATE = "app"
-
-## Scopes:
-#####################################################################
-
-#### Keys ignored in scope 3:.:.:deployment.pri:UNIX AND NOT ANDROID:
-# INSTALLS = "target"
-
-#### Keys ignored in scope 5:.:.:deployment.pri:QNX:
-# target.path = "/tmp/$${TARGET}/bin"
-
-#### Keys ignored in scope 6:.:.:deployment.pri:else:
-# target.path = "/opt/$${TARGET}/bin"
diff --git a/tests/manual/fonts/deployment.pri b/tests/manual/fonts/deployment.pri
deleted file mode 100644
index c89af25a..00000000
--- a/tests/manual/fonts/deployment.pri
+++ /dev/null
@@ -1,14 +0,0 @@
-unix:!android {
- isEmpty(target.path) {
- qnx {
- target.path = /tmp/$${TARGET}/bin
- } else {
- target.path = /opt/$${TARGET}/bin
- }
- export(target.path)
- }
- INSTALLS += target
-}
-
-export(INSTALLS)
-
diff --git a/tests/manual/fonts/fonts.pro b/tests/manual/fonts/fonts.pro
deleted file mode 100644
index 36e70f7e..00000000
--- a/tests/manual/fonts/fonts.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-TEMPLATE = app
-
-QT += qml quick
-
-SOURCES += main.cpp
-
-RESOURCES += qml.qrc
-
-# Additional import path used to resolve QML modules in Qt Creator's code model
-QML_IMPORT_PATH =
-
-# Default rules for deployment.
-include(deployment.pri)
-
diff --git a/tests/manual/fonts/main.cpp b/tests/manual/fonts/main.cpp
deleted file mode 100644
index 43e58bdd..00000000
--- a/tests/manual/fonts/main.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
-
- return app.exec();
-}
-
diff --git a/tests/manual/fonts/main.qml b/tests/manual/fonts/main.qml
deleted file mode 100644
index 8d3464a0..00000000
--- a/tests/manual/fonts/main.qml
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Templates as T
-import QtQuick.Layouts
-
-ApplicationWindow {
- visible: true
- width: 480
- height: 640
- title: qsTr("Hello World")
-
- header: ToolBar {
- Slider {
- from: 16
- to: 48
- stepSize: 1
- onValueChanged: control.font.pointSize = value
- }
- }
-
- Flickable {
- anchors.fill: parent
- contentWidth: control.width
- contentHeight: control.height
-
- T.Control {
- id: control
- width: layout.implicitWidth + 40
- height: layout.implicitHeight + 40
- ColumnLayout {
- id: layout
- anchors.fill: parent
- anchors.margins: 20
- Button { text: "Button" }
- CheckBox { text: "CheckBox" }
- GroupBox { title: "GroupBox" }
- RadioButton { text: "RadioButton" }
- Switch { text: "Switch" }
- TabButton {
- text: "TabButton"
- font.pointSize: control.font.pointSize
- }
- TextField { placeholderText: "TextField" }
- TextArea { placeholderText: "TextArea" }
- ToolButton { text: "ToolButton" }
- Tumbler { model: 3 }
- }
- }
-
- ScrollBar.vertical: ScrollBar { }
- }
-}
diff --git a/tests/manual/fonts/qml.qrc b/tests/manual/fonts/qml.qrc
deleted file mode 100644
index 0ff3892d..00000000
--- a/tests/manual/fonts/qml.qrc
+++ /dev/null
@@ -1,6 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- </qresource>
-</RCC>
-
diff --git a/tests/manual/gifs/CMakeLists.txt b/tests/manual/gifs/CMakeLists.txt
deleted file mode 100644
index 8bbec940..00000000
--- a/tests/manual/gifs/CMakeLists.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-# Generated from gifs.pro.
-
-#####################################################################
-## tst_gifs Test:
-#####################################################################
-
-# Collect test data
-file(GLOB_RECURSE test_data_glob
- RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}/data/*)
-list(APPEND test_data ${test_data_glob})
-
-qt_add_test(tst_gifs
- SOURCES
- capturedevent.cpp capturedevent.h
- eventcapturer.cpp eventcapturer.h
- gifrecorder.cpp gifrecorder.h
- tst_gifs.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Quick
- TESTDATA ${test_data}
-)
-
-#### Keys ignored in scope 1:.:.:gifs.pro:<TRUE>:
-# TEMPLATE = "app"
-
-## Scopes:
-#####################################################################
diff --git a/tests/manual/gifs/capturedevent.cpp b/tests/manual/gifs/capturedevent.cpp
deleted file mode 100644
index cec5e97a..00000000
--- a/tests/manual/gifs/capturedevent.cpp
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "capturedevent.h"
-
-#include <QMetaEnum>
-#include <QMouseEvent>
-
-namespace {
- static inline bool isMouseEvent(const QEvent &event)
- {
- return event.type() >= QEvent::MouseButtonPress && event.type() <= QEvent::MouseMove;
- }
-}
-
-CapturedEvent::CapturedEvent()
-{
-}
-
-CapturedEvent::CapturedEvent(const QEvent &event, int delay)
-{
- setEvent(event);
- setDelay(delay);
-}
-
-void CapturedEvent::setEvent(const QEvent &event)
-{
- mType = event.type();
-
- if (isMouseEvent(event)) {
- const QMouseEvent *mouseEvent = static_cast<const QMouseEvent*>(&event);
- mPos = mouseEvent->pos();
- mMouseButton = mouseEvent->button();
- }
-}
-
-QEvent::Type CapturedEvent::type() const
-{
- return mType;
-}
-
-int CapturedEvent::delay() const
-{
- return mDelay;
-}
-
-void CapturedEvent::setDelay(int delay)
-{
- mDelay = delay;
-
- mCppCommand.clear();
-
- // We generate the C++ command here instead of when the event is captured,
- // because events() might trim some events, causing the delay of some events to change.
- // If we did it earlier, the events wouldn't have correct delays.
- if (mType == QEvent::MouseMove) {
- mCppCommand = QString::fromLatin1("QTest::mouseMove(&view, QPoint(%1, %2), %3);")
- .arg(mPos.x())
- .arg(mPos.y())
- .arg(mDelay);
-
- } else if (mType >= QEvent::MouseButtonPress && mType <= QEvent::MouseButtonDblClick) {
- QString eventTestFunctionName = (mType == QEvent::MouseButtonPress
- ? "mousePress" : (mType == QEvent::MouseButtonRelease
- ? "mouseRelease" : "mouseDClick"));
- QString buttonStr = QMetaEnum::fromType<Qt::MouseButtons>().valueToKey(mMouseButton);
- mCppCommand = QString::fromLatin1("QTest::%1(&view, Qt::%2, Qt::NoModifier, QPoint(%3, %4), %5);")
- .arg(eventTestFunctionName)
- .arg(buttonStr)
- .arg(mPos.x())
- .arg(mPos.y())
- .arg(mDelay);
- }
-}
-
-QString CapturedEvent::cppCommand() const
-{
- return mCppCommand;
-}
-
diff --git a/tests/manual/gifs/capturedevent.h b/tests/manual/gifs/capturedevent.h
deleted file mode 100644
index 28ed510a..00000000
--- a/tests/manual/gifs/capturedevent.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef CAPTUREDEVENT_H
-#define CAPTUREDEVENT_H
-
-#include <QEvent>
-#include <QPoint>
-#include <QString>
-
-class CapturedEvent
-{
-public:
- CapturedEvent();
- CapturedEvent(const QEvent &event, int delay);
-
- void setEvent(const QEvent &event);
-
- int delay() const;
- void setDelay(int delay);
-
- QEvent::Type type() const;
-
- QString cppCommand() const;
-
-private:
- QEvent::Type mType;
- QPoint mPos;
- Qt::MouseButton mMouseButton;
- int mDelay;
- QString mCppCommand;
-};
-
-#endif // CAPTUREDEVENT_H
diff --git a/tests/manual/gifs/data/qtquickcontrols2-busyindicator.qml b/tests/manual/gifs/data/qtquickcontrols2-busyindicator.qml
deleted file mode 100644
index 37dc5c7f..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-busyindicator.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: busyIndicator.implicitWidth
- height: busyIndicator.implicitHeight
- visible: true
-
- property alias busyIndicator: busyIndicator
-
- BusyIndicator {
- id: busyIndicator
- running: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-button-flat.qml b/tests/manual/gifs/data/qtquickcontrols2-button-flat.qml
deleted file mode 100644
index dd07926f..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-button-flat.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: button.width
- height: button.height
- visible: true
-
- Button {
- id: button
- text: pressed ? "Pressed" : "Button"
- flat: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-button-highlighted.qml b/tests/manual/gifs/data/qtquickcontrols2-button-highlighted.qml
deleted file mode 100644
index 4af50d6b..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-button-highlighted.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: button.width
- height: button.height
- visible: true
-
- Button {
- id: button
- text: pressed ? "Pressed" : "Button"
- highlighted: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-button.qml b/tests/manual/gifs/data/qtquickcontrols2-button.qml
deleted file mode 100644
index 8336855c..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-button.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: button.width
- height: button.height
- visible: true
-
- Button {
- id: button
- text: pressed ? "Pressed" : "Button"
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-checkbox-tristate.qml b/tests/manual/gifs/data/qtquickcontrols2-checkbox-tristate.qml
deleted file mode 100644
index b0bee6cd..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-checkbox-tristate.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Window
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property alias english: english
- property alias norwegian: norwegian
-
- ColumnLayout {
- id: column
- anchors.centerIn: parent
-
- CheckBox {
- text: qsTr("Languages")
- checkState: english.checked && norwegian.checked
- ? Qt.Checked : (english.checked || norwegian.checked) ? Qt.PartiallyChecked : Qt.Unchecked
- tristate: true
- }
- CheckBox {
- id: english
- text: qsTr("English")
- checked: true
- leftPadding: indicator.width
- }
- CheckBox {
- id: norwegian
- text: qsTr("Norwegian")
- checked: true
- leftPadding: indicator.width
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-checkbox.qml b/tests/manual/gifs/data/qtquickcontrols2-checkbox.qml
deleted file mode 100644
index 46cdc073..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-checkbox.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Window
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property alias control2: control2
- property alias control3: control3
-
- ColumnLayout {
- id: column
- anchors.centerIn: parent
-
- CheckBox {
- checked: true
- text: qsTr("First")
- }
- CheckBox {
- id: control2
- text: qsTr("Second")
- }
- CheckBox {
- id: control3
- checked: true
- text: qsTr("Third")
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-checkdelegate-tristate.qml b/tests/manual/gifs/data/qtquickcontrols2-checkdelegate-tristate.qml
deleted file mode 100644
index 585aea27..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-checkdelegate-tristate.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Window
-
-Window {
- id: window
- width: 170
- height: column.implicitHeight
- visible: true
-
- property alias english: english
- property alias norwegian: norwegian
-
- ColumnLayout {
- id: column
- anchors.fill: parent
-
- CheckDelegate {
- text: qsTr("Languages")
- checkState: english.checked && norwegian.checked
- ? Qt.Checked : (english.checked || norwegian.checked) ? Qt.PartiallyChecked : Qt.Unchecked
- tristate: true
- Layout.fillWidth: true
- }
- CheckDelegate {
- id: english
- text: qsTr("English")
- checked: true
- leftPadding: indicator.width + 14
- Layout.fillWidth: true
- }
- CheckDelegate {
- id: norwegian
- text: qsTr("Norwegian")
- checked: true
- leftPadding: indicator.width + 14
- Layout.fillWidth: true
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-checkdelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-checkdelegate.qml
deleted file mode 100644
index 704a0601..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-checkdelegate.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property var delegate: repeater.count > 0 ? repeater.itemAt(0) : null
-
- Column {
- id: column
- anchors.centerIn: parent
-
- Repeater {
- id: repeater
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: CheckDelegate {
- text: modelData
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-combobox.qml b/tests/manual/gifs/data/qtquickcontrols2-combobox.qml
deleted file mode 100644
index 274f2efe..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-combobox.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Window
-
-Window {
- width: 140
- height: 180
- visible: true
-
- property alias comboBox: comboBox
-
- ComboBox {
- id: comboBox
- model: ["First", "Second", "Third"]
- y: 10
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-delaybutton.qml b/tests/manual/gifs/data/qtquickcontrols2-delaybutton.qml
deleted file mode 100644
index 8eaa3df2..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-delaybutton.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: button.width
- height: button.height
- visible: true
-
- DelayButton {
- id: button
- progress: 0.69
- text: "DelayButton"
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml b/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml
deleted file mode 100644
index 3b9b1466..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: dial.implicitWidth + 20
- height: dial.implicitHeight + 20
- visible: true
-
- property alias dial: dial
-
- Dial {
- id: dial
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml b/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml
deleted file mode 100644
index 317d81d2..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: dial.implicitWidth + 20
- height: dial.implicitHeight + 20
- visible: true
-
- property alias dial: dial
-
- Dial {
- id: dial
- wrap: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-drawer.qml b/tests/manual/gifs/data/qtquickcontrols2-drawer.qml
deleted file mode 100644
index 32efcba8..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-drawer.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Window
-
-ApplicationWindow {
- id: window
- width: 300
- height: 300
- visible: true
-
- property alias drawer: drawer
-
- Drawer {
- id: drawer
- width: window.width * 0.66
- height: window.height
- rightPadding: 0
-
- Rectangle {
- border.width: 1
- anchors.fill: parent
-
- Label {
- text: "Drawer"
- font.pixelSize: 32
- anchors.centerIn: parent
- }
- }
- }
-
- Rectangle {
- border.width: 1
- anchors.fill: parent
-
- Label {
- text: "Content"
- font.pixelSize: 32
- anchors.centerIn: parent
- }
- }
-
- Rectangle {
- z: 1
- color: "black"
- width: 1
- height: parent.height
- parent: window.overlay
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-itemdelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-itemdelegate.qml
deleted file mode 100644
index 1ef9e2c0..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-itemdelegate.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property var delegate: repeater.count > 0 ? repeater.itemAt(0) : null
-
- Column {
- id: column
-
- Repeater {
- id: repeater
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: ItemDelegate {
- text: modelData
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-menu.qml b/tests/manual/gifs/data/qtquickcontrols2-menu.qml
deleted file mode 100644
index 80f2c86d..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-menu.qml
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-// TODO: restore and finish https://codereview.qt-project.org/#/c/123948/
-ApplicationWindow {
- width: menu.contentItem.width + 20
- height: menu.contentItem.height + fileButton.height + 20
-
- property alias fileButton: fileButton
- property alias menu: menu
-
- Button {
- id: fileButton
- text: "File"
- onClicked: menu.open()
- x: 10
- y: 10
- }
- Menu {
- id: menu
- // TODO
- contentItem.x: fileButton.x
- contentItem.y: fileButton.y + fileButton.height
-
- MenuItem {
- text: "New..."
- }
- MenuItem {
- text: "Open..."
- }
- MenuItem {
- text: "Save"
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-progressbar-indeterminate.qml b/tests/manual/gifs/data/qtquickcontrols2-progressbar-indeterminate.qml
deleted file mode 100644
index 4679ea03..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-progressbar-indeterminate.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: progressBar.implicitWidth
- height: 64
- visible: true
-
- property alias progressBar: progressBar
-
- ProgressBar {
- id: progressBar
- indeterminate: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-progressbar.qml b/tests/manual/gifs/data/qtquickcontrols2-progressbar.qml
deleted file mode 100644
index 994af450..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-progressbar.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: progressBar.implicitWidth
- height: 64
- visible: true
-
- property alias progressBar: progressBar
-
- ProgressBar {
- id: progressBar
- value: 0.5
- anchors.centerIn: parent
-
- Timer {
- running: true
- interval: 500
- onTriggered: animation.start()
- }
-
- NumberAnimation {
- id: animation
- target: progressBar
- property: "value"
- to: 1
- duration: 2000
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-radiobutton.qml b/tests/manual/gifs/data/qtquickcontrols2-radiobutton.qml
deleted file mode 100644
index fec7ec9b..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-radiobutton.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Window
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property alias control1: control1
- property alias control2: control2
- property alias control3: control3
-
- ColumnLayout {
- id: column
- anchors.centerIn: parent
-
- RadioButton {
- id: control1
- text: qsTr("First")
- checked: true
- }
- RadioButton {
- id: control2
- text: qsTr("Second")
- }
- RadioButton {
- id: control3
- text: qsTr("Third")
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-radiodelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-radiodelegate.qml
deleted file mode 100644
index a00f3209..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-radiodelegate.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property var delegate: repeater.count > 0 ? repeater.itemAt(0) : null
-
- ButtonGroup {
- id: buttonGroup
- }
-
- Column {
- id: column
- anchors.centerIn: parent
-
- Repeater {
- id: repeater
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: RadioDelegate {
- checked: index == 0
- text: modelData
- ButtonGroup.group: buttonGroup
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-rangeslider.qml b/tests/manual/gifs/data/qtquickcontrols2-rangeslider.qml
deleted file mode 100644
index c648f998..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-rangeslider.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: slider.implicitWidth
- height: slider.implicitHeight
- visible: true
-
- property alias slider: slider
-
- RangeSlider {
- id: slider
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-scrollbar-snap.qml b/tests/manual/gifs/data/qtquickcontrols2-scrollbar-snap.qml
deleted file mode 100644
index cc4d6dc2..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-scrollbar-snap.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: 100
- maximumHeight: 20
- visible: true
-
- property alias scrollbar: scrollbar
-
- ScrollBar {
- id: scrollbar
- size: 0.2
- stepSize: 0.25
- active: true
- width: parent.width
- anchors.centerIn: parent
- orientation: Qt.Horizontal
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-scrollbar.qml b/tests/manual/gifs/data/qtquickcontrols2-scrollbar.qml
deleted file mode 100644
index e838673a..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-scrollbar.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: 100
- height: 120
- visible: true
- color: "#eeeeee"
-
- property alias scrollBar: scrollBar
-
- ListView {
- anchors.fill: parent
-
- ScrollBar.vertical: ScrollBar {
- id: scrollBar
- active: true
- }
-
- model: 10
- delegate: Label {
- text: qsTr("Item %1").arg(index + 1)
- width: 100
- height: 40
- leftPadding: 10
- verticalAlignment: Text.AlignVCenter
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-scrollindicator.qml b/tests/manual/gifs/data/qtquickcontrols2-scrollindicator.qml
deleted file mode 100644
index be23df3b..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-scrollindicator.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: 100
- height: 120
- visible: true
- color: "#eeeeee"
-
- ListView {
- anchors.fill: parent
-
- ScrollIndicator.vertical: ScrollIndicator {
- active: true
- }
-
- model: 10
- delegate: Label {
- text: qsTr("Item %1").arg(index + 1)
- width: 100
- height: 40
- leftPadding: 10
- verticalAlignment: Text.AlignVCenter
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-slider-snap.qml b/tests/manual/gifs/data/qtquickcontrols2-slider-snap.qml
deleted file mode 100644
index 26066770..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-slider-snap.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: slider.implicitWidth
- height: slider.implicitHeight
- visible: true
-
- property alias slider: slider
-
- Slider {
- id: slider
- stepSize: 0.2
- anchors.centerIn: parent
-
- Rectangle {
- anchors.fill: slider.handle
- radius: width / 2
- color: slider.pressed ? "#aa666666" : "transparent"
- }
-
- contentItem: Item {
- Repeater {
- id: repeater
- model: 6
-
- Rectangle {
- x: ((slider.contentItem.width - slider.handle.width) * (index / (repeater.count - 1)))
- - width / 2 + slider.handle.width / 2
- y: parent.height
- width: 1
- height: 4
- color: "#888"
- }
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-slider.qml b/tests/manual/gifs/data/qtquickcontrols2-slider.qml
deleted file mode 100644
index 83f652aa..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-slider.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: slider.implicitWidth
- height: slider.implicitHeight
- visible: true
-
- property alias slider: slider
-
- Slider {
- id: slider
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-stackview-pop.qml b/tests/manual/gifs/data/qtquickcontrols2-stackview-pop.qml
deleted file mode 100644
index 7ddd8db8..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-stackview-pop.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-ApplicationWindow {
- width: 160
- height: 160
- visible: true
- color: "#eeeeee"
-
- property int maxDepth: 3
-
- function itemText(index) {
- return String.fromCharCode(65 + index);
- }
-
- Component {
- id: labelComponent
-
- Label {
- font.pixelSize: 60
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
-
- Component.onCompleted: {
- for (var i = 0; i < maxDepth; ++i) {
- stackView.push(labelComponent, { text: itemText(i) }, StackView.Immediate);
- }
- }
- }
-
- Label {
- id: operationLabel
- text: "pop()"
- font.pixelSize: 16
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.margins: 10
- }
-
- Timer {
- id: operationTimer
- running: true
- interval: 1500
- onTriggered: {
- stackView.pop();
- hideOperationTimer.start();
- }
- }
-
- Timer {
- id: hideOperationTimer
- interval: operationTimer.interval
- onTriggered: operationLabel.visible = false
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-stackview-push.qml b/tests/manual/gifs/data/qtquickcontrols2-stackview-push.qml
deleted file mode 100644
index 88229fce..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-stackview-push.qml
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-ApplicationWindow {
- width: 160
- height: 160
- visible: true
- color: "#eeeeee"
-
- property int itemIndex: 0
- property int maxDepth: 3
-
- function itemText(index) {
- return String.fromCharCode(65 + index);
- }
-
- Component {
- id: labelComponent
-
- Label {
- font.pixelSize: 60
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
- }
-
- Label {
- id: operationLabel
- text: "push(" + itemText(Math.max(0, Math.min(maxDepth - 1, itemIndex - 1))) + ")"
- font.pixelSize: 16
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.margins: 10
- }
-
- Timer {
- id: operationTimer
- running: true
- interval: 1500
- repeat: stackView.depth < maxDepth - 1
- onRepeatChanged: if (!repeat) hideOperationTimer.start()
-
- onTriggered: stackView.push(labelComponent, { text: itemText(itemIndex++) })
- }
-
- Timer {
- id: hideOperationTimer
- interval: operationTimer.interval * 2
- onTriggered: operationLabel.visible = false
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-stackview-replace.qml b/tests/manual/gifs/data/qtquickcontrols2-stackview-replace.qml
deleted file mode 100644
index 59885745..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-stackview-replace.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-ApplicationWindow {
- width: 160
- height: 160
- visible: true
- color: "#eeeeee"
-
- property int maxDepth: 3
-
- function itemText(index) {
- return String.fromCharCode(65 + index);
- }
-
- Component {
- id: labelComponent
-
- Label {
- font.pixelSize: 60
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
-
- Component.onCompleted: {
- for (var i = 0; i < maxDepth; ++i) {
- stackView.push(labelComponent, { text: itemText(i) }, StackView.Immediate);
- }
- }
- }
-
- Label {
- id: operationLabel
- text: "replace(D)"
- font.pixelSize: 16
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.margins: 10
- }
-
- Timer {
- id: operationTimer
- running: true
- interval: 1500
- onTriggered: {
- stackView.replace(labelComponent, { text: "D" });
- hideOperationTimer.start();
- }
- }
-
- Timer {
- id: hideOperationTimer
- interval: operationTimer.interval
- onTriggered: operationLabel.visible = false
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-stackview-unwind.qml b/tests/manual/gifs/data/qtquickcontrols2-stackview-unwind.qml
deleted file mode 100644
index a7435d2a..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-stackview-unwind.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-ApplicationWindow {
- width: 160
- height: 160
- visible: true
- color: "#eeeeee"
-
- property int maxDepth: 3
-
- function itemText(index) {
- return String.fromCharCode(65 + index);
- }
-
- Component {
- id: labelComponent
-
- Label {
- font.pixelSize: 60
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
-
- Component.onCompleted: {
- for (var i = 0; i < maxDepth; ++i) {
- stackView.push(labelComponent, { text: itemText(i) }, StackView.Immediate);
- }
- }
- }
-
- Label {
- id: operationLabel
- text: "pop(null)"
- font.pixelSize: 16
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.margins: 10
- }
-
- Timer {
- id: operationTimer
- running: true
- interval: 1500
- onTriggered: {
- stackView.pop(null);
- hideOperationTimer.start();
- }
- }
-
- Timer {
- id: hideOperationTimer
- interval: operationTimer.interval
- onTriggered: operationLabel.visible = false
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-behind.qml b/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-behind.qml
deleted file mode 100644
index 0b18c6a3..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-behind.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: swipeDelegate.implicitWidth
- height: swipeDelegate.implicitHeight
- visible: true
-
- property alias swipeDelegate: swipeDelegate
-
- SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- anchors.centerIn: parent
-
- swipe.left: null
- swipe.right: null
- swipe.behind: Rectangle {
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
-
- Label {
- text: "Behind Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-leading-trailing.qml b/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-leading-trailing.qml
deleted file mode 100644
index 789fb86f..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-leading-trailing.qml
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: swipeDelegate.implicitWidth
- height: swipeDelegate.implicitHeight
- visible: true
-
- property alias swipeDelegate: swipeDelegate
-
- SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- anchors.centerIn: parent
-
- swipe.left: Rectangle {
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
- anchors.right: parent.left
-
- Label {
- text: "Left Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
-
- swipe.right: Rectangle {
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
- anchors.left: parent.right
-
- Label {
- text: "Right Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-swipedelegate.qml
deleted file mode 100644
index c78fc6d4..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: swipeDelegate.implicitWidth
- height: swipeDelegate.implicitHeight
- visible: true
-
- property alias swipeDelegate: swipeDelegate
-
- SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- anchors.centerIn: parent
-
- swipe.left: Rectangle {
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
-
- Label {
- text: "Left Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
-
- swipe.right: Rectangle {
- anchors.fill: parent
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
-
- Label {
- text: "Right Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-swipeview.qml b/tests/manual/gifs/data/qtquickcontrols2-swipeview.qml
deleted file mode 100644
index 9004ff18..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-swipeview.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: 300
- height: 300
- visible: true
-
- property alias swipeView: view
-
- Rectangle {
- border.width: 1
- anchors.fill: parent
- }
-
- SwipeView {
- id: view
- anchors.fill: parent
-
- Label {
- text: "First\nPage"
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- }
-
- Label {
- text: "Second\nPage"
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- }
-
- Label {
- text: "Third\nPage"
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- }
- }
-
- PageIndicator {
- id: indicator
-
- count: view.count
- currentIndex: view.currentIndex
-
- anchors.bottom: view.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-switch.qml b/tests/manual/gifs/data/qtquickcontrols2-switch.qml
deleted file mode 100644
index a9497bde..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-switch.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: 100
- height: 50
- visible: true
-
- Switch {
- id: theSwitch
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-switchdelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-switchdelegate.qml
deleted file mode 100644
index 1caece5b..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-switchdelegate.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property var delegate: repeater.count > 0 ? repeater.itemAt(0) : null
-
- Column {
- id: column
- anchors.centerIn: parent
-
- Repeater {
- id: repeater
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: SwitchDelegate {
- text: modelData
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-tabbar.qml b/tests/manual/gifs/data/qtquickcontrols2-tabbar.qml
deleted file mode 100644
index a973cef8..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-tabbar.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: 300
- height: tabBar.height
- visible: true
-
- TabBar {
- id: tabBar
- width: parent.width
-
- TabButton { text: qsTr("Home") }
- TabButton { text: qsTr("Discover") }
- TabButton { text: qsTr("Activity") }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml b/tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml
deleted file mode 100644
index bfad311e..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-
-Window {
- width: frame.implicitWidth + 10
- height: frame.implicitHeight + 10
- visible: true
-
- function formatText(count, modelData) {
- var data = count === 12 ? modelData + 1 : modelData;
- return data.toString().length < 2 ? "0" + data : data;
- }
-
- Component {
- id: delegateComponent
-
- Label {
- text: formatText(Tumbler.tumbler.count, modelData)
- opacity: 1.0 - Math.abs(Tumbler.displacement) / (Tumbler.tumbler.visibleItemCount / 2)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- Frame {
- id: frame
- padding: 0
- anchors.centerIn: parent
-
- Row {
- id: row
-
- Tumbler {
- id: hoursTumbler
- model: 12
- delegate: delegateComponent
- }
-
- Tumbler {
- id: minutesTumbler
- model: 60
- delegate: delegateComponent
- }
-
- Tumbler {
- id: amPmTumbler
- wrap: false
- model: ["AM", "PM"]
- delegate: delegateComponent
- }
- }
- }
-}
diff --git a/tests/manual/gifs/eventcapturer.cpp b/tests/manual/gifs/eventcapturer.cpp
deleted file mode 100644
index ad88b1db..00000000
--- a/tests/manual/gifs/eventcapturer.cpp
+++ /dev/null
@@ -1,236 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "eventcapturer.h"
-
-#include <QDebug>
-#include <QMetaEnum>
-#include <QMouseEvent>
-#include <QTimer>
-
-/*!
- Installs an event filter on a particular object to record specific events
- that can be retrieved as C++ source code.
-
- For example:
-
- \code
- EventCapturer eventCapturer;
-
- view.show();
-
- eventCapturer.startCapturing(&view, 5000);
-
- // interact with the view here, in order for the events to be captured
-
- qDebug() << "\n";
- const auto capturedEvents = eventCapturer.capturedEvents();
- for (CapturedEvent event : capturedEvents)
- qDebug().noquote() << event.cppCommand();
- \endcode
-
- It is recommended to set the \c Qt::FramelessWindowHint flag on the view
- (this code has not been tested under other usage):
-
- view.setFlags(view.flags() | Qt::FramelessWindowHint);
-*/
-
-EventCapturer::EventCapturer(QObject *parent) :
- QObject(parent),
- mEventSource(nullptr),
- mStopCaptureKey(Qt::Key_Escape),
- mMoveEventTrimFlags(TrimNone),
- mDuration(0),
- mLastCaptureTime(0)
-{
- mCapturedEventTypes << QEvent::MouseButtonPress << QEvent::MouseButtonRelease << QEvent::MouseButtonDblClick << QEvent::MouseMove;
-}
-
-void EventCapturer::startCapturing(QObject *eventSource, int duration)
-{
- mEventSource = eventSource;
-
- if (!mEventSource)
- return;
-
- mEventSource->installEventFilter(this);
- mDelayTimer.start();
- mDuration = duration;
- mLastCaptureTime = 0;
-
- QTimer::singleShot(mDuration, this, SLOT(stopCapturing()));
-}
-
-void EventCapturer::setStopCaptureKey(Qt::Key stopCaptureKey)
-{
- mStopCaptureKey = stopCaptureKey;
-}
-
-/*!
- Move events generate a lot of clutter, and for most cases they're not
- necessary. Here's a list of scenarios where various trim flags make sense:
-
- Scenario Flags
-
- Record the mouse cursor TrimNone
- Record mouseover/hover effects TrimNone
- Dragging/flicking TrimAll
-*/
-void EventCapturer::setMoveEventTrimFlags(MoveEventTrimFlags trimFlags)
-{
- mMoveEventTrimFlags = trimFlags;
-}
-
-QSet<QEvent::Type> EventCapturer::capturedEventTypes()
-{
- return mCapturedEventTypes;
-}
-
-void EventCapturer::setCapturedEventTypes(QSet<QEvent::Type> types)
-{
- mCapturedEventTypes = types;
-}
-
-QList<CapturedEvent> EventCapturer::capturedEvents() const
-{
- if (mMoveEventTrimFlags == TrimNone || mEvents.isEmpty())
- return mEvents;
-
- // We can't easily trim "trailing" move events as they come in without
- // storing them in some form, so we just do it all here.
-
- int firstEventIndex = 0;
- int lastEventIndex = mEvents.size() - 1;
- // The accumulated delay of all of the move events that we remove.
- // We keep this in order to maintain the correct timing between events.
- int accumulatedDelay = 0;
-
- bool encounteredNonMoveEvent = false;
- if (mMoveEventTrimFlags.testFlag(TrimLeading)) {
- for (int eventIndex = 0; !encounteredNonMoveEvent && eventIndex < mEvents.size(); ++eventIndex) {
- const CapturedEvent event = mEvents.at(eventIndex);
- if (event.type() != QEvent::MouseMove) {
- encounteredNonMoveEvent = true;
- firstEventIndex = eventIndex;
- } else {
- accumulatedDelay += event.delay();
- }
- }
- }
-
- if (mMoveEventTrimFlags.testFlag(TrimTrailing)) {
- encounteredNonMoveEvent = false;
- for (int eventIndex = mEvents.size() - 1; !encounteredNonMoveEvent && eventIndex >= 0; --eventIndex) {
- const CapturedEvent event = mEvents.at(eventIndex);
- if (event.type() != QEvent::MouseMove) {
- encounteredNonMoveEvent = true;
- lastEventIndex = eventIndex;
- // Don't need to bother with delays for trailing mouse moves, as there is nothing after them.
- }
- }
- }
-
- // Before we go any further, we need to copy the subset of commands while
- // the indices are still valid - we could be removing from the middle of
- // the commands next. Also, the function is const, so we can't remove from
- // mEvents anyway. :)
- QList<CapturedEvent> events = mEvents.mid(firstEventIndex, (lastEventIndex - firstEventIndex) + 1);
-
- if (mMoveEventTrimFlags.testFlag(TrimAfterReleases)) {
- bool lastNonMoveEventWasRelease = false;
- for (int eventIndex = 0; eventIndex < events.size(); ) {
- CapturedEvent &event = events[eventIndex];
- if (event.type() == QEvent::MouseMove && lastNonMoveEventWasRelease) {
- accumulatedDelay += event.delay();
- events.remove(eventIndex);
- } else {
- lastNonMoveEventWasRelease = event.type() == QEvent::MouseButtonRelease;
- if (event.type() == QEvent::MouseButtonPress) {
- event.setDelay(event.delay() + accumulatedDelay);
- accumulatedDelay = 0;
- }
- ++eventIndex;
- }
- }
- }
-
- return events;
-}
-
-bool EventCapturer::eventFilter(QObject *object, QEvent *event)
-{
- if (event->type() == QEvent::KeyPress && static_cast<QKeyEvent*>(event)->key() == mStopCaptureKey) {
- stopCapturing();
- return true;
- }
-
- if (object != mEventSource)
- return false;
-
- if (!mCapturedEventTypes.contains(event->type()))
- return false;
-
- if (event->type() == QEvent::MouseButtonPress) {
- captureEvent(event);
- } else if (event->type() == QEvent::MouseButtonRelease) {
- captureEvent(event);
- } else if (event->type() == QEvent::MouseButtonDblClick) {
- captureEvent(event);
- } else if (event->type() == QEvent::MouseMove) {
- captureEvent(event);
- } else {
- qWarning() << "No support for event type" << QMetaEnum::fromType<QEvent::Type>().valueToKey(event->type());
- }
- return false;
-}
-
-void EventCapturer::stopCapturing()
-{
- if (mEventSource) {
- mEventSource->removeEventFilter(this);
- mEventSource = 0;
- mDuration = 0;
- mLastCaptureTime = 0;
- }
-}
-
-void EventCapturer::captureEvent(const QEvent *event)
-{
- qDebug() << "captured" << event->type();
- CapturedEvent capturedEvent(*event, mDelayTimer.elapsed() - mLastCaptureTime);
- mEvents.append(capturedEvent);
- mLastCaptureTime = mDelayTimer.elapsed();
-}
diff --git a/tests/manual/gifs/eventcapturer.h b/tests/manual/gifs/eventcapturer.h
deleted file mode 100644
index ea01299f..00000000
--- a/tests/manual/gifs/eventcapturer.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef EVENTCAPTURER_H
-#define EVENTCAPTURER_H
-
-#include <QObject>
-#include <QElapsedTimer>
-#include <QEvent>
-#include <QList>
-#include <QPoint>
-#include <QSet>
-
-#include "capturedevent.h"
-
-class EventCapturer : public QObject
-{
- Q_OBJECT
-
-public:
- EventCapturer(QObject *parent = 0);
-
- enum MoveEventTrimFlag
- {
- TrimNone = 0x0,
- TrimLeading = 0x1,
- TrimTrailing = 0x2,
- TrimAfterReleases = 0x4,
- TrimAll = TrimLeading | TrimTrailing | TrimAfterReleases
- };
-
- Q_DECLARE_FLAGS(MoveEventTrimFlags, MoveEventTrimFlag)
-
- void setStopCaptureKey(Qt::Key stopCaptureKey);
- void setMoveEventTrimFlags(MoveEventTrimFlags trimFlags);
-
- void startCapturing(QObject *eventSource, int duration);
-
- QSet<QEvent::Type> capturedEventTypes();
- void setCapturedEventTypes(QSet<QEvent::Type> types);
-
- QList<CapturedEvent> capturedEvents() const;
-protected:
- bool eventFilter(QObject *object, QEvent *event) override;
-
-private slots:
- void stopCapturing();
-
-private:
- void captureEvent(const QEvent *event);
-
- QObject *mEventSource;
- QSet<QEvent::Type> mCapturedEventTypes;
- Qt::Key mStopCaptureKey;
- MoveEventTrimFlags mMoveEventTrimFlags;
- QElapsedTimer mDelayTimer;
- QList<CapturedEvent> mEvents;
- int mDuration;
- int mLastCaptureTime;
-};
-
-Q_DECLARE_OPERATORS_FOR_FLAGS(EventCapturer::MoveEventTrimFlags)
-
-#endif // EVENTCAPTURER_H
diff --git a/tests/manual/gifs/gifrecorder.cpp b/tests/manual/gifs/gifrecorder.cpp
deleted file mode 100644
index 4bc7c9cd..00000000
--- a/tests/manual/gifs/gifrecorder.cpp
+++ /dev/null
@@ -1,327 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "gifrecorder.h"
-
-#include <QLoggingCategory>
-#include <QQmlComponent>
-#include <QQuickItem>
-#include <QtTest>
-
-/*!
- QProcess wrapper around byzanz-record (sudo apt-get install byzanz).
-
- \note The following programs must be installed if \c setHighQuality(true)
- is called:
-
- \li \e ffmpeg (sudo apt-get install ffmpeg)
- \li \e convert (sudo apt-get install imagemagick)
- \li \e gifsicle (sudo apt-get install gifsicle)
-
- It is recommended to set the \c Qt::FramelessWindowHint flag on the view
- (this code has not been tested under other usage):
-
- view.setFlags(view.flags() | Qt::FramelessWindowHint);
-*/
-
-Q_LOGGING_CATEGORY(lcGifRecorder, "qt.gifrecorder")
-
-namespace {
- static const char *byzanzProcessName = "byzanz-record";
-}
-
-GifRecorder::GifRecorder() :
- QObject(nullptr),
- mWindow(nullptr),
- mHighQuality(false),
- mRecordingDuration(0),
- mRecordCursor(false),
- mByzanzProcessFinished(false)
-{
- if (lcGifRecorder().isDebugEnabled()) {
- // Ensures output from the process goes directly into the console.
- mByzanzProcess.setProcessChannelMode(QProcess::ForwardedChannels);
- }
-
- connect(&mByzanzProcess, SIGNAL(errorOccurred(QProcess::ProcessError)), this, SLOT(onByzanzError()));
- connect(&mByzanzProcess, SIGNAL(finished(int)), this, SLOT(onByzanzFinished()));
-}
-
-void GifRecorder::setRecordingDuration(int duration)
-{
- QVERIFY2(duration >= 1, qPrintable(QString::fromLatin1("Recording duration %1 must be larger than 1 second").arg(duration)));
- QVERIFY2(duration < 20, qPrintable(QString::fromLatin1("Recording duration %1 must be less than 20 seconds").arg(duration)));
-
- mRecordingDuration = duration;
-}
-
-void GifRecorder::setRecordCursor(bool recordCursor)
-{
- mRecordCursor = recordCursor;
-}
-
-void GifRecorder::setDataDirPath(const QString &path)
-{
- QVERIFY2(!path.isEmpty(), "Data directory path cannot be empty");
- mDataDirPath = path;
-}
-
-void GifRecorder::setOutputDir(const QDir &dir)
-{
- QVERIFY2(dir.exists(), "Output directory must exist");
- mOutputDir = dir;
-}
-
-void GifRecorder::setOutputFileBaseName(const QString &fileBaseName)
-{
- mOutputFileBaseName = fileBaseName;
-}
-
-void GifRecorder::setQmlFileName(const QString &fileName)
-{
- QVERIFY2(!fileName.isEmpty(), "QML file name cannot be empty");
- mQmlInputFileName = fileName;
-}
-
-void GifRecorder::setView(QQuickWindow *view)
-{
- this->mWindow = view;
-}
-
-/*!
- If \a highQuality is \c true, records as .flv (lossless) and then converts
- to .gif in order to retain more color information, at the expense of a
- larger file size. Otherwise, records directly to .gif using a limited
- amount of colors, resulting in a smaller file size.
-
- Set this to \c true if any of the items have transparency, for example.
-
- The default value is \c false.
-*/
-void GifRecorder::setHighQuality(bool highQuality)
-{
- mHighQuality = highQuality;
-}
-
-QQuickWindow *GifRecorder::window() const
-{
- return mWindow;
-}
-
-namespace {
- struct ProcessWaitResult {
- bool success;
- QString errorMessage;
- };
-
- ProcessWaitResult waitForProcessToStart(QProcess &process, const QString &processName, const QString &args)
- {
- qCDebug(lcGifRecorder) << "Starting" << processName << "with the following arguments:" << args;
- const QString command = processName + QLatin1Char(' ') + args;
- process.start(command);
- if (!process.waitForStarted(1000)) {
- QString errorMessage = QString::fromLatin1("Could not launch %1 with the following arguments: %2\nError:\n%3");
- errorMessage = errorMessage.arg(processName).arg(args).arg(process.errorString());
- return { false, errorMessage };
- }
-
- qCDebug(lcGifRecorder) << "Successfully started" << processName;
- return { true, QString() };
- }
-
- ProcessWaitResult waitForProcessToFinish(QProcess &process, const QString &processName, int waitDuration)
- {
- if (!process.waitForFinished(waitDuration) || process.exitCode() != 0) {
- QString errorMessage = QString::fromLatin1("\"%1\" failed to finish (exit code %2): %3");
- errorMessage = errorMessage.arg(processName).arg(process.exitCode()).arg(process.errorString());
- return { false, errorMessage };
- }
-
- qCDebug(lcGifRecorder) << processName << "finished";
- return { true, QString() };
- }
-}
-
-void GifRecorder::start()
-{
- QDir gifQmlDir(mDataDirPath);
- QVERIFY(gifQmlDir.entryList().contains(mQmlInputFileName));
-
- const QString qmlPath = gifQmlDir.absoluteFilePath(mQmlInputFileName);
- mEngine.load(QUrl::fromLocalFile(qmlPath));
- mWindow = qobject_cast<QQuickWindow*>(mEngine.rootObjects().first());
- QVERIFY2(mWindow, "Top level item must be a window");
-
- mWindow->setFlags(mWindow->flags() | Qt::FramelessWindowHint);
-
- mWindow->show();
- mWindow->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(mWindow, 500));
- QVERIFY(QTest::qWaitForWindowExposed(mWindow, 500));
- // For some reason, whatever is behind the window is sometimes
- // in the recording, so add this delay to be extra sure that it isn't.
- QTest::qWait(200);
-
- if (mOutputFileBaseName.isEmpty()) {
- mOutputFileBaseName = mOutputDir.absoluteFilePath(mQmlInputFileName);
- mOutputFileBaseName.replace(".qml", "");
- }
-
- mByzanzOutputFileName = mOutputDir.absoluteFilePath(mOutputFileBaseName);
- if (mHighQuality) {
- mByzanzOutputFileName.append(QLatin1String(".flv"));
- mGifFileName = mByzanzOutputFileName;
- mGifFileName.replace(QLatin1String(".flv"), QLatin1String(".gif"));
- } else {
- mByzanzOutputFileName.append(QLatin1String(".gif"));
- }
-
- const QPoint globalWindowPos = mWindow->mapToGlobal(QPoint(0, 0));
- QString args = QLatin1String("-d %1 -v %2 -x %3 -y %4 -w %5 -h %6 %7");
- args = args.arg(QString::number(mRecordingDuration))
- .arg(mRecordCursor ? QStringLiteral("-c") : QString())
- .arg(QString::number(globalWindowPos.x()))
- .arg(QString::number(globalWindowPos.y()))
- .arg(QString::number(mWindow->width()))
- .arg(QString::number(mWindow->height()))
- .arg(mByzanzOutputFileName);
-
-
- // https://bugs.launchpad.net/ubuntu/+source/byzanz/+bug/1483581
- // It seems that byzanz-record will cut a recording short if there are no
- // screen repaints, no matter what format it outputs. This can be tested
- // manually from the command line by recording any section of the screen
- // without moving the mouse and then running avprobe on the resulting .flv.
- // Our workaround is to force view updates.
- connect(&mEventTimer, SIGNAL(timeout()), mWindow, SLOT(update()));
- mEventTimer.start(100);
-
- const ProcessWaitResult result = waitForProcessToStart(mByzanzProcess, byzanzProcessName, args);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-}
-
-void GifRecorder::waitForFinish()
-{
- // Give it an extra couple of seconds on top of its recording duration.
- const int recordingDurationMs = mRecordingDuration * 1000;
- const int waitDuration = recordingDurationMs + 2000;
- QTRY_VERIFY_WITH_TIMEOUT(mByzanzProcessFinished, waitDuration);
-
- mEventTimer.stop();
-
- if (!QFileInfo::exists(mByzanzOutputFileName)) {
- const QString message = QString::fromLatin1(
- "The process said it finished successfully, but %1 was not generated.").arg(mByzanzOutputFileName);
- QFAIL(qPrintable(message));
- }
-
- if (mHighQuality) {
- // Indicate the end of recording and the beginning of conversion.
- QQmlComponent busyComponent(&mEngine);
- busyComponent.setData("import QtQuick; import QtQuick.Controls; Rectangle { anchors.fill: parent; " \
- "BusyIndicator { width: 32; height: 32; anchors.centerIn: parent } }", QUrl());
- QCOMPARE(busyComponent.status(), QQmlComponent::Ready);
- QQuickItem *busyRect = qobject_cast<QQuickItem*>(busyComponent.create());
- QVERIFY(busyRect);
- busyRect->setParentItem(mWindow->contentItem());
- QSignalSpy spy(mWindow, SIGNAL(frameSwapped()));
- QVERIFY(spy.wait());
-
- // Start ffmpeg and send its output to imagemagick's convert command.
- // Based on the example in the documentation for QProcess::setStandardOutputProcess().
- QProcess ffmpegProcess;
- QProcess convertProcess;
- ffmpegProcess.setStandardOutputProcess(&convertProcess);
-
- const QString ffmpegProcessName = QStringLiteral("ffmpeg");
- const QString ffmpegArgs = QString::fromLatin1("-i %1 -r 20 -f image2pipe -vcodec ppm -").arg(mByzanzOutputFileName);
- ProcessWaitResult result = waitForProcessToStart(ffmpegProcess, ffmpegProcessName, ffmpegArgs);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-
- const QString convertProcessName = QStringLiteral("convert");
- const QString convertArgs = QString::fromLatin1("-delay 5 -loop 0 - %1").arg(mGifFileName);
-
- result = waitForProcessToStart(convertProcess, convertProcessName, convertArgs);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-
- result = waitForProcessToFinish(ffmpegProcess, ffmpegProcessName, waitDuration);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
- // Conversion can take a bit longer, so double the wait time.
- result = waitForProcessToFinish(convertProcess, convertProcessName, waitDuration * 2);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-
- const QString gifsicleProcessName = QStringLiteral("gifsicle");
- const QString verbose = lcGifRecorder().isDebugEnabled() ? QStringLiteral("-V") : QString();
-
- // --colors 256 stops the warning about local color tables being used, and results in smaller files,
- // but it seems to affect the duration of the GIF (checked with exiftool), so we don't use it.
- // For example, the slider GIF has the following attributes with and without the option:
- // With Without
- // Frame Count 57 61
- // Duration 2.85 seconds 3.05 seconds
- // File size 11 kB 13 kB
- const QString gifsicleArgs = QString::fromLatin1("%1 -b -O %2").arg(verbose).arg(mGifFileName);
- QProcess gifsicleProcess;
- if (lcGifRecorder().isDebugEnabled())
- gifsicleProcess.setProcessChannelMode(QProcess::ForwardedChannels);
- result = waitForProcessToStart(gifsicleProcess, gifsicleProcessName, gifsicleArgs);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
- result = waitForProcessToFinish(gifsicleProcess, gifsicleProcessName, waitDuration);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-
- if (QFile::exists(mByzanzOutputFileName))
- QVERIFY(QFile::remove(mByzanzOutputFileName));
- }
-}
-
-void GifRecorder::onByzanzError()
-{
- const QString message = QString::fromLatin1("%1 failed to finish: %2");
- QFAIL(qPrintable(message.arg(byzanzProcessName).arg(mByzanzProcess.errorString())));
-}
-
-void GifRecorder::onByzanzFinished()
-{
- qCDebug(lcGifRecorder) << byzanzProcessName << "finished";
- mByzanzProcessFinished = true;
-}
diff --git a/tests/manual/gifs/gifrecorder.h b/tests/manual/gifs/gifrecorder.h
deleted file mode 100644
index 30d06b11..00000000
--- a/tests/manual/gifs/gifrecorder.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef GIFRECORDER_H
-#define GIFRECORDER_H
-
-#include <QObject>
-#include <QProcess>
-#include <QQmlApplicationEngine>
-#include <QQuickWindow>
-#include <QDir>
-#include <QString>
-#include <QTimer>
-
-class GifRecorder : public QObject
-{
- Q_OBJECT
-
-public:
- GifRecorder();
-
- void setRecordingDuration(int duration);
- void setRecordCursor(bool recordCursor);
- void setDataDirPath(const QString &path);
- void setOutputDir(const QDir &dir);
- void setOutputFileBaseName(const QString &fileBaseName);
- void setQmlFileName(const QString &fileName);
- void setView(QQuickWindow *mWindow);
- void setHighQuality(bool highQuality);
-
- QQuickWindow *window() const;
-
- void start();
- bool hasStarted() const;
- void waitForFinish();
-
-private slots:
- void onByzanzError();
- void onByzanzFinished();
-
-private:
- QString mDataDirPath;
- QDir mOutputDir;
- QString mOutputFileBaseName;
- QString mByzanzOutputFileName;
- QString mGifFileName;
- QString mQmlInputFileName;
- QQmlApplicationEngine mEngine;
- QQuickWindow *mWindow;
- bool mHighQuality;
- int mRecordingDuration;
- bool mRecordCursor;
-
- QProcess mByzanzProcess;
- bool mByzanzProcessFinished;
- QTimer mEventTimer;
-};
-
-#endif // GIFRECORDER_H
diff --git a/tests/manual/gifs/gifs.pro b/tests/manual/gifs/gifs.pro
deleted file mode 100644
index a5bb72c7..00000000
--- a/tests/manual/gifs/gifs.pro
+++ /dev/null
@@ -1,20 +0,0 @@
-TEMPLATE = app
-TARGET = tst_gifs
-
-QT += quick testlib
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-HEADERS += \
- $$PWD/gifrecorder.h \
- $$PWD/eventcapturer.h \
- capturedevent.h
-
-SOURCES += \
- $$PWD/tst_gifs.cpp \
- $$PWD/gifrecorder.cpp \
- $$PWD/eventcapturer.cpp \
- capturedevent.cpp
-
-TESTDATA += \
- $$PWD/data/*
diff --git a/tests/manual/gifs/tst_gifs.cpp b/tests/manual/gifs/tst_gifs.cpp
deleted file mode 100644
index 80c3fd9f..00000000
--- a/tests/manual/gifs/tst_gifs.cpp
+++ /dev/null
@@ -1,1052 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtTest>
-#include <QtQuick>
-
-#include "gifrecorder.h"
-#include "eventcapturer.h"
-
-//#define GENERATE_EVENT_CODE
-
-class tst_Gifs : public QObject
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void tumblerWrap();
- void slider();
- void sliderSnap_data();
- void sliderSnap();
- void rangeSlider();
- void busyIndicator();
- void switchGif();
- void button_data();
- void button();
- void tabBar();
- void menu();
- void swipeView();
- void swipeDelegate_data();
- void swipeDelegate();
- void swipeDelegateBehind();
- void delegates_data();
- void delegates();
- void dial_data();
- void dial();
- void scrollBar();
- void scrollBarSnap_data();
- void scrollBarSnap();
- void scrollIndicator();
- void progressBar_data();
- void progressBar();
- void triState_data();
- void triState();
- void checkables_data();
- void checkables();
- void comboBox();
- void stackView_data();
- void stackView();
- void drawer();
- void delayButton();
-
-private:
- void moveSmoothly(QQuickWindow *window, const QPoint &from, const QPoint &to, int movements,
- QEasingCurve::Type easingCurveType = QEasingCurve::OutQuint, int movementDelay = 15);
- void moveSmoothlyAlongArc(QQuickWindow *window, QPoint arcCenter, qreal distanceFromCenter,
- qreal startAngleRadians, qreal endAngleRadians, QEasingCurve::Type easingCurveType = QEasingCurve::OutQuint);
-
- QString dataDirPath;
- QDir outputDir;
-};
-
-void tst_Gifs::initTestCase()
-{
- dataDirPath = QFINDTESTDATA("data");
- QVERIFY(!dataDirPath.isEmpty());
- qInfo() << "data directory:" << dataDirPath;
-
- outputDir = QDir(QDir::current().filePath("gifs"));
- QVERIFY(outputDir.exists() || QDir::current().mkpath("gifs"));
- qInfo() << "output directory:" << outputDir.absolutePath();
-}
-
-void tst_Gifs::moveSmoothly(QQuickWindow *window, const QPoint &from, const QPoint &to,
- int movements, QEasingCurve::Type easingCurveType, int movementDelay)
-{
- QEasingCurve curve(easingCurveType);
- int xDifference = to.x() - from.x();
- int yDifference = to.y() - from.y();
- for (int movement = 0; movement < movements; ++movement) {
- QPoint pos = QPoint(
- from.x() + qRound(curve.valueForProgress(movement / qreal(qAbs(xDifference))) * xDifference),
- from.y() + qRound(curve.valueForProgress(movement / qreal(qAbs(yDifference))) * yDifference));
- QTest::mouseMove(window, pos, movementDelay);
- }
-}
-
-QPoint posAlongArc(QPoint arcCenter, qreal startAngleRadians, qreal endAngleRadians,
- qreal distanceFromCenter, qreal progress, QEasingCurve::Type easingCurveType)
-{
- QEasingCurve curve(easingCurveType);
- const qreal angle = startAngleRadians + curve.valueForProgress(progress) * (endAngleRadians - startAngleRadians);
- return (arcCenter - QTransform().rotateRadians(angle).map(QPointF(0, distanceFromCenter))).toPoint();
-}
-
-void tst_Gifs::moveSmoothlyAlongArc(QQuickWindow *window, QPoint arcCenter, qreal distanceFromCenter,
- qreal startAngleRadians, qreal endAngleRadians, QEasingCurve::Type easingCurveType)
-{
- QEasingCurve curve(easingCurveType);
- const qreal angleSpan = endAngleRadians - startAngleRadians;
- const int movements = qAbs(angleSpan) * 20 + 20;
-
- for (int movement = 0; movement < movements; ++movement) {
- const qreal progress = movement / qreal(movements);
- const QPoint pos = posAlongArc(arcCenter, startAngleRadians, endAngleRadians,
- distanceFromCenter, progress, easingCurveType);
- QTest::mouseMove(window, pos, 15);
- }
-}
-
-void tst_Gifs::tumblerWrap()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(5);
- gifRecorder.setQmlFileName("qtquickcontrols2-tumbler-wrap.qml");
-
- gifRecorder.start();
-
- // Left as an example. Usually EventCapturer code would be removed after
- // the GIF has been generated.
- QQuickWindow *window = gifRecorder.window();
- EventCapturer eventCapturer;
-#ifdef GENERATE_EVENT_CODE
- eventCapturer.setMoveEventTrimFlags(EventCapturer::TrimAll);
- eventCapturer.startCapturing(window, 4000);
-#else
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(89, 75), 326);
- QTest::mouseMove(window, QPoint(89, 76), 31);
- QTest::mouseMove(window, QPoint(89, 80), 10);
- QTest::mouseMove(window, QPoint(93, 93), 10);
- QTest::mouseMove(window, QPoint(95, 101), 10);
- QTest::mouseMove(window, QPoint(97, 109), 11);
- QTest::mouseMove(window, QPoint(101, 125), 10);
- QTest::mouseMove(window, QPoint(103, 133), 11);
- QTest::mouseMove(window, QPoint(103, 141), 11);
- QTest::mouseMove(window, QPoint(105, 158), 10);
- QTest::mouseMove(window, QPoint(105, 162), 13);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(105, 162), 0);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(154, 100), 1098);
- QTest::mouseMove(window, QPoint(154, 99), 16);
- QTest::mouseMove(window, QPoint(153, 98), 16);
- QTest::mouseMove(window, QPoint(153, 95), 16);
- QTest::mouseMove(window, QPoint(152, 91), 15);
- QTest::mouseMove(window, QPoint(152, 87), 14);
- QTest::mouseMove(window, QPoint(151, 83), 13);
- QTest::mouseMove(window, QPoint(151, 86), 13);
- QTest::mouseMove(window, QPoint(150, 79), 12);
- QTest::mouseMove(window, QPoint(148, 73), 12);
- QTest::mouseMove(window, QPoint(148, 68), 12);
- QTest::mouseMove(window, QPoint(148, 60), 10);
- QTest::mouseMove(window, QPoint(147, 50), 10);
- QTest::mouseMove(window, QPoint(147, 40), 9);
- QTest::mouseMove(window, QPoint(147, 30), 8);
- QTest::mouseMove(window, QPoint(147, 20), 7);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(147, 20), 0);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(154, 100), 1000);
- QTest::mouseMove(window, QPoint(147, 101), 16);
- QTest::mouseMove(window, QPoint(147, 102), 16);
- QTest::mouseMove(window, QPoint(147, 105), 16);
- QTest::mouseMove(window, QPoint(148, 109), 15);
- QTest::mouseMove(window, QPoint(148, 115), 14);
- QTest::mouseMove(window, QPoint(148, 120), 13);
- QTest::mouseMove(window, QPoint(150, 125), 13);
- QTest::mouseMove(window, QPoint(151, 130), 12);
- QTest::mouseMove(window, QPoint(151, 135), 12);
- QTest::mouseMove(window, QPoint(153, 140), 12);
- QTest::mouseMove(window, QPoint(153, 150), 10);
- QTest::mouseMove(window, QPoint(153, 160), 10);
- QTest::mouseMove(window, QPoint(153, 170), 9);
- QTest::mouseMove(window, QPoint(155, 180), 8);
- QTest::mouseMove(window, QPoint(155, 188), 7);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(20, 188), 0);
-#endif
-
- gifRecorder.waitForFinish();
-
- const auto capturedEvents = eventCapturer.capturedEvents();
- for (CapturedEvent event : capturedEvents)
- qDebug().noquote() << event.cppCommand();
-}
-
-void tst_Gifs::slider()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(5);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-slider.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *slider = window->property("slider").value<QQuickItem*>();
- QVERIFY(slider);
- QQuickItem *handle = slider->property("handle").value<QQuickItem*>();
- QVERIFY(handle);
-
- const QPoint handleCenter = handle->mapToItem(window->contentItem(),
- QPoint(handle->width() / 2, handle->height() / 2)).toPoint();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, handleCenter, 100);
- QPoint pos1 = handleCenter + QPoint(slider->width() * 0.3, 0);
- moveSmoothly(window, handleCenter, pos1, pos1.x() - handleCenter.x(), QEasingCurve::OutQuint, 10);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos1, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, handleCenter, 100);
- const QPoint pos2 = QPoint(slider->width() - handleCenter.x() + slider->property("rightPadding").toInt(), handleCenter.y());
- moveSmoothly(window, pos1, pos2, pos2.x() - pos1.x(), QEasingCurve::OutQuint, 10);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos2, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos2, 100);
- moveSmoothly(window, pos2, handleCenter, qAbs(handleCenter.x() - pos2.x()), QEasingCurve::OutQuint, 10);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, handleCenter, 20);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::sliderSnap_data()
-{
- QTest::addColumn<QString>("gifBaseName");
- QTest::addColumn<int>("snapMode");
- QTest::newRow("NoSnap") << "qtquickcontrols2-slider-nosnap" << 0;
- QTest::newRow("SnapAlways") << "qtquickcontrols2-slider-snapalways" << 1;
- QTest::newRow("SnapOnRelease") << "qtquickcontrols2-slider-snaponrelease" << 2;
-}
-
-void tst_Gifs::sliderSnap()
-{
- QFETCH(QString, gifBaseName);
- QFETCH(int, snapMode);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(8);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-slider-snap.qml");
- gifRecorder.setOutputFileBaseName(gifBaseName);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *slider = window->property("slider").value<QQuickItem*>();
- QVERIFY(slider);
- QVERIFY(slider->setProperty("snapMode", QVariant(snapMode)));
- QCOMPARE(slider->property("snapMode").toInt(), snapMode);
- QQuickItem *handle = slider->property("handle").value<QQuickItem*>();
- QVERIFY(handle);
-
- const QPoint startPos(slider->property("leftPadding").toReal(), slider->height() / 2);
- const int trackWidth = slider->property("availableWidth").toReal();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, startPos, 200);
- QPoint pos1 = startPos + QPoint(trackWidth * 0.3, 0);
- moveSmoothly(window, startPos, pos1, pos1.x() - startPos.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos1, 0);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, startPos, 400);
- const QPoint pos2 = startPos + QPoint(trackWidth * 0.6, 0);
- moveSmoothly(window, pos1, pos2, pos2.x() - pos1.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos2, 0);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos2, 400);
- moveSmoothly(window, pos2, startPos, qAbs(startPos.x() - pos2.x()) / 2, QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, startPos, 0);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::rangeSlider()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(7);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-rangeslider.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *slider = window->property("slider").value<QQuickItem*>();
- QVERIFY(slider);
- QObject *first = slider->property("first").value<QObject*>();
- QVERIFY(first);
- QQuickItem *firstHandle = first->property("handle").value<QQuickItem*>();
- QVERIFY(firstHandle);
- QObject *second = slider->property("second").value<QObject*>();
- QVERIFY(second);
- QQuickItem *secondHandle = second->property("handle").value<QQuickItem*>();
- QVERIFY(secondHandle);
-
- const QPoint firstCenter = firstHandle->mapToItem(slider,
- QPoint(firstHandle->width() / 2, firstHandle->height() / 2)).toPoint();
- const QPoint secondCenter = secondHandle->mapToItem(slider,
- QPoint(secondHandle->width() / 2, secondHandle->height() / 2)).toPoint();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, firstCenter, 100);
- const QPoint firstTarget = firstCenter + QPoint(slider->width() * 0.25, 0);
- moveSmoothly(window, firstCenter, firstTarget, firstTarget.x() - firstCenter.x());
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, firstTarget, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, secondCenter, 100);
- const QPoint secondTarget = secondCenter - QPoint(slider->width() * 0.25, 0);
- moveSmoothly(window, secondCenter, secondTarget, qAbs(secondTarget.x() - secondCenter.x()));
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, secondTarget, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, secondTarget, 100);
- moveSmoothly(window, secondTarget, secondCenter, qAbs(secondTarget.x() - secondCenter.x()));
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, secondCenter, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, firstTarget, 100);
- moveSmoothly(window, firstTarget, firstCenter, firstTarget.x() - firstCenter.x());
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, firstCenter, 20);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::busyIndicator()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-busyindicator.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- // Record nothing for a bit to make it smoother.
- QTest::qWait(800 * 2);
-
- QQuickItem *busyIndicator = window->property("busyIndicator").value<QQuickItem*>();
- QVERIFY(busyIndicator);
-
- busyIndicator->setProperty("running", false);
-
- // 800 ms is the duration of one rotation animation cycle for BusyIndicator.
- QTest::qWait(800 * 2);
-
- busyIndicator->setProperty("running", true);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::switchGif()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(3);
- gifRecorder.setQmlFileName("qtquickcontrols2-switch.qml");
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.8, window->height() / 2), 0);
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.2, window->height() / 2), 800);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::button_data()
-{
- QTest::addColumn<QString>("qmlFileName");
- QTest::newRow("button") << QString::fromLatin1("qtquickcontrols2-button.qml");
- QTest::newRow("button-flat") << QString::fromLatin1("qtquickcontrols2-button-flat.qml");
- QTest::newRow("button-highlighted") << QString::fromLatin1("qtquickcontrols2-button-highlighted.qml");
-}
-
-void tst_Gifs::button()
-{
- QFETCH(QString, qmlFileName);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(3);
- gifRecorder.setQmlFileName(qmlFileName);
- // Seems to be necessary to show the Default button background.
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 700);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::tabBar()
-{
- const QString qmlFileName = QStringLiteral("qtquickcontrols2-tabbar.qml");
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(4);
- gifRecorder.setQmlFileName(qmlFileName);
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.6, window->height() / 2), 0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.6, window->height() / 2), 50);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.9, window->height() / 2), 400);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.9, window->height() / 2), 50);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.6, window->height() / 2), 800);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.6, window->height() / 2), 50);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.3, window->height() / 2), 400);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.3, window->height() / 2), 50);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::menu()
-{
- const QString qmlFileName = QStringLiteral("qtquickcontrols2-menu.qml");
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(3);
- gifRecorder.setQmlFileName(qmlFileName);
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- const QQuickItem *fileButton = window->property("fileButton").value<QQuickItem*>();
- QVERIFY(fileButton);
-
- const QPoint fileButtonCenter = fileButton->mapToScene(QPointF(fileButton->width() / 2, fileButton->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, fileButtonCenter, 0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, fileButtonCenter, 200);
-
- const QObject *menu = window->property("menu").value<QObject*>();
- QVERIFY(menu);
- const QQuickItem *menuContentItem = menu->property("contentItem").value<QQuickItem*>();
- QVERIFY(menuContentItem);
-
- const QPoint lastItemPos = menuContentItem->mapToScene(QPointF(menuContentItem->width() / 2, menuContentItem->height() - 10)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, lastItemPos, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, lastItemPos, 300);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::swipeView()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(8);
- gifRecorder.setQmlFileName(QStringLiteral("qtquickcontrols2-swipeview.qml"));
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *swipeView = window->property("swipeView").value<QQuickItem*>();
- QVERIFY(swipeView);
-
- QTest::qWait(1200);
- swipeView->setProperty("currentIndex", 1);
- QTest::qWait(2000);
- swipeView->setProperty("currentIndex", 2);
- QTest::qWait(2000);
- swipeView->setProperty("currentIndex", 0);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::swipeDelegate_data()
-{
- QTest::addColumn<QString>("qmlFileName");
- QTest::newRow("qtquickcontrols2-swipedelegate.qml") << QString::fromLatin1("qtquickcontrols2-swipedelegate.qml");
- QTest::newRow("qtquickcontrols2-swipedelegate-leading-trailing.qml") << QString::fromLatin1("qtquickcontrols2-swipedelegate-leading-trailing.qml");
-}
-
-void tst_Gifs::swipeDelegate()
-{
- QFETCH(QString, qmlFileName);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(10);
- gifRecorder.setQmlFileName(qmlFileName);
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *swipeDelegate = window->property("swipeDelegate").value<QQuickItem*>();
- QVERIFY(swipeDelegate);
-
- // Show left item.
- const QPoint leftTarget = QPoint(swipeDelegate->width() * 0.2, 0);
- const QPoint rightTarget = QPoint(swipeDelegate->width() * 0.8, 0);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 100);
- const int movements = rightTarget.x() - leftTarget.x();
- moveSmoothly(window, leftTarget, rightTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 1000);
- moveSmoothly(window, rightTarget, leftTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 20);
-
- QTest::qWait(1000);
-
- // Show right item.
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 1000);
- moveSmoothly(window, rightTarget, leftTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 1000);
- moveSmoothly(window, leftTarget, rightTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 20);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::swipeDelegateBehind()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(14);
- gifRecorder.setQmlFileName(QStringLiteral("qtquickcontrols2-swipedelegate-behind.qml"));
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *swipeDelegate = window->property("swipeDelegate").value<QQuickItem*>();
- QVERIFY(swipeDelegate);
-
- // Show wrapping around left item.
- const QPoint leftTarget = QPoint(swipeDelegate->width() * 0.2, 0);
- const QPoint rightTarget = QPoint(swipeDelegate->width() * 0.8, 0);
- const int movements = rightTarget.x() - leftTarget.x();
- for (int i = 0; i < 4; ++i) {
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 100);
- moveSmoothly(window, leftTarget, rightTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 20);
-
- QTest::qWait(500);
- }
-
- QTest::qWait(1000);
-
- // Show wrapping around right item.
- for (int i = 0; i < 4; ++i) {
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 100);
- moveSmoothly(window, rightTarget, leftTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 20);
-
- QTest::qWait(500);
- }
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::delegates_data()
-{
- QTest::addColumn<QString>("name");
- QTest::addColumn<QList<int> >("pressIndices");
- QTest::addColumn<int>("duration");
-
- QTest::newRow("ItemDelegate") << "itemdelegate" << (QList<int> { 0, 1, 2 }) << 5;
- QTest::newRow("CheckDelegate") << "checkdelegate" << (QList<int> { 0, 0 }) << 5;
- QTest::newRow("RadioDelegate") << "radiodelegate" << (QList<int> { 1, 0 }) << 5;
- QTest::newRow("SwitchDelegate") << "switchdelegate" << (QList<int> { 0, 0 }) << 5;
-}
-
-void tst_Gifs::delegates()
-{
- QFETCH(QString, name);
- QFETCH(QList<int>, pressIndices);
- QFETCH(int, duration);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(duration);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-%1.qml").arg(name));
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *delegate = window->property("delegate").value<QQuickItem*>();
- QVERIFY(delegate);
-
- for (int i = 0; i < pressIndices.size(); ++i) {
- const int pressIndex = pressIndices.at(i);
- const QPoint delegateCenter(delegate->mapToScene(QPointF(
- delegate->width() / 2, delegate->height() / 2 + delegate->height() * pressIndex)).toPoint());
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, delegateCenter, i == 0 ? 200 : 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, delegateCenter, 400);
- }
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::dial_data()
-{
- QTest::addColumn<QString>("name");
-
- QTest::newRow("dial-wrap") << "wrap";
- QTest::newRow("dial-no-wrap") << "no-wrap";
-}
-
-void tst_Gifs::dial()
-{
- QFETCH(QString, name);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(10);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-dial-%1.qml").arg(name));
- gifRecorder.setHighQuality(false);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *dial = window->property("dial").value<QQuickItem*>();
- QVERIFY(dial);
-
- const QPoint arcCenter = dial->mapToScene(QPoint(dial->width() / 2, dial->height() / 2)).toPoint();
- const qreal distanceFromCenter = dial->height() * 0.25;
- // Go a bit past the actual min/max to ensure that we get the full range.
- const qreal minAngle = qDegreesToRadians(-170.0);
- const qreal maxAngle = qDegreesToRadians(170.0);
- // Drag from start to end.
- qreal startAngle = minAngle;
- qreal endAngle = maxAngle;
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, posAlongArc(
- arcCenter, startAngle, endAngle, distanceFromCenter, 0, QEasingCurve::InOutQuad), 30);
-
- moveSmoothlyAlongArc(window, arcCenter, distanceFromCenter, startAngle, endAngle, QEasingCurve::InOutQuad);
-
- // Come back from the end a bit.
- startAngle = endAngle;
- endAngle -= qDegreesToRadians(50.0);
- moveSmoothlyAlongArc(window, arcCenter, distanceFromCenter, startAngle, endAngle, QEasingCurve::InOutQuad);
-
- // Try to drag over max to show what happens with different wrap settings.
- startAngle = endAngle;
- endAngle = qDegreesToRadians(270.0);
- moveSmoothlyAlongArc(window, arcCenter, distanceFromCenter, startAngle, endAngle, QEasingCurve::InOutQuad);
-
- // Go back to the start so that it loops nicely.
- startAngle = endAngle;
- endAngle = minAngle;
- moveSmoothlyAlongArc(window, arcCenter, distanceFromCenter, startAngle, endAngle, QEasingCurve::InOutQuad);
-
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, posAlongArc(
- arcCenter, startAngle, endAngle, distanceFromCenter, 1, QEasingCurve::InOutQuad), 30);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::checkables_data()
-{
- QTest::addColumn<QString>("name");
- QTest::addColumn<QList<int> >("pressIndices");
-
- QTest::newRow("checkbox") << "checkbox" << (QList<int> { 1, 2, 2, 1 });
- QTest::newRow("radiobutton") << "radiobutton" << (QList<int> { 1, 2, 1, 0 });
-}
-
-void tst_Gifs::checkables()
-{
- QFETCH(QString, name);
- QFETCH(QList<int>, pressIndices);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-%1.qml").arg(name));
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
-
- for (int i = 0; i < pressIndices.size(); ++i) {
- const int pressIndex = pressIndices.at(i);
- const QString controlId = QString::fromLatin1("control%1").arg(pressIndex + 1);
- QQuickItem *control = window->property(qPrintable(controlId)).value<QQuickItem*>();
- QVERIFY(control);
-
- const QPoint pos = control->mapToScene(QPointF(control->width() / 2, control->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos, 800);
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, pos, 300);
- }
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::comboBox()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName(QStringLiteral("qtquickcontrols2-combobox.qml"));
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *comboBox = window->property("comboBox").value<QQuickItem*>();
- QVERIFY(comboBox);
-
- // Open the popup.
- const QPoint center = comboBox->mapToScene(
- QPoint(comboBox->width() / 2, comboBox->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, center, 800);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, center, 80);
-
- // Select the third item.
- QObject *popup = comboBox->property("popup").value<QObject*>();
- QVERIFY(popup);
- QQuickItem *popupContent = popup->property("contentItem").value<QQuickItem*>();
- QVERIFY(popupContent);
- const QPoint lastItemPos = popupContent->mapToScene(
- QPoint(popupContent->width() / 2, popupContent->height() * 0.8)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, lastItemPos, 600);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, lastItemPos, 200);
-
- // Open the popup.
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, center, 1500);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, center, 80);
-
- // Select the first item.
- const QPoint firstItemPos = popupContent->mapToScene(
- QPoint(popupContent->width() / 2, popupContent->height() * 0.2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, firstItemPos, 600);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, firstItemPos, 200);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::triState_data()
-{
- QTest::addColumn<QString>("name");
-
- QTest::newRow("checkbox-tristate") << "checkbox-tristate";
- QTest::newRow("checkdelegate-tristate") << "checkdelegate-tristate";
-}
-
-void tst_Gifs::triState()
-{
- QFETCH(QString, name);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-%1.qml").arg(name));
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *english = window->property("english").value<QQuickItem*>();
- QVERIFY(english);
- QQuickItem *norwegian = window->property("norwegian").value<QQuickItem*>();
- QVERIFY(norwegian);
-
- const QPoint englishCenter = english->mapToScene(
- QPointF(english->width() / 2, english->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, englishCenter, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, englishCenter, 300);
-
- const QPoint norwegianCenter = norwegian->mapToScene(
- QPointF(norwegian->width() / 2, norwegian->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, norwegianCenter, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, norwegianCenter, 300);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, norwegianCenter, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, norwegianCenter, 300);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, englishCenter, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, englishCenter, 300);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::scrollBar()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName("qtquickcontrols2-scrollbar.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *scrollBar = window->property("scrollBar").value<QQuickItem*>();
- QVERIFY(scrollBar);
-
- // Flick in the center of the screen to show that there's a scroll bar.
- const QPoint lhsWindowBottom = QPoint(0, window->height() - 1);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, lhsWindowBottom, 100);
- QTest::mouseMove(window, lhsWindowBottom - QPoint(0, 10), 30);
- QTest::mouseMove(window, lhsWindowBottom - QPoint(0, 30), 30);
- QTest::mouseMove(window, lhsWindowBottom - QPoint(0, 60), 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, lhsWindowBottom - QPoint(0, 100), 30);
-
- // Scroll with the scroll bar.
- const QPoint rhsWindowBottom = QPoint(window->width() - 1, window->height() - 1);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, rhsWindowBottom, 2000);
- const QPoint rhsWindowTop = QPoint(window->width() - 1, 1);
- moveSmoothly(window, rhsWindowBottom, rhsWindowTop,
- qAbs(rhsWindowTop.y() - rhsWindowBottom.y()), QEasingCurve::InCubic, 10);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, rhsWindowTop, 20);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::scrollBarSnap_data()
-{
- QTest::addColumn<QString>("gifBaseName");
- QTest::addColumn<int>("snapMode");
- QTest::newRow("NoSnap") << "qtquickcontrols2-scrollbar-nosnap" << 0;
- QTest::newRow("SnapAlways") << "qtquickcontrols2-scrollbar-snapalways" << 1;
- QTest::newRow("SnapOnRelease") << "qtquickcontrols2-scrollbar-snaponrelease" << 2;
-}
-
-void tst_Gifs::scrollBarSnap()
-{
- QFETCH(QString, gifBaseName);
- QFETCH(int, snapMode);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(8);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-scrollbar-snap.qml");
- gifRecorder.setOutputFileBaseName(gifBaseName);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *scrollbar = window->property("scrollbar").value<QQuickItem*>();
- QVERIFY(scrollbar);
- QVERIFY(scrollbar->setProperty("snapMode", QVariant(snapMode)));
- QCOMPARE(scrollbar->property("snapMode").toInt(), snapMode);
-
- const QPoint startPos(scrollbar->property("leftPadding").toReal(), scrollbar->y() + scrollbar->height() / 2);
- const int availableWidth = scrollbar->property("availableWidth").toReal();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, startPos, 200);
- const QPoint pos1 = startPos + QPoint(availableWidth * 0.3, 0);
- moveSmoothly(window, startPos, pos1, pos1.x() - startPos.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos1, 0);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos1, 400);
- const QPoint pos2 = startPos + QPoint(availableWidth * 0.6, 0);
- moveSmoothly(window, pos1, pos2, pos2.x() - pos1.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos2, 0);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos2, 400);
- moveSmoothly(window, pos2, startPos, pos2.x() - startPos.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, startPos, 0);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::scrollIndicator()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName("qtquickcontrols2-scrollindicator.qml");
-
- gifRecorder.start();
-
- // Flick in the center of the screen to show that there's a scroll indicator.
- QQuickWindow *window = gifRecorder.window();
- const QPoint windowBottom = QPoint(0, window->height() - 1);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, windowBottom, 100);
- QTest::mouseMove(window, windowBottom - QPoint(0, 10), 30);
- QTest::mouseMove(window, windowBottom - QPoint(0, 30), 30);
- QTest::mouseMove(window, windowBottom - QPoint(0, 60), 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, windowBottom - QPoint(0, 100), 30);
-
- // Scroll back down.
- const QPoint windowTop = QPoint(0, 0);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, windowTop, 2000);
- QTest::mouseMove(window, windowTop + QPoint(0, 10), 30);
- QTest::mouseMove(window, windowTop + QPoint(0, 30), 30);
- QTest::mouseMove(window, windowTop + QPoint(0, 60), 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, windowTop + QPoint(0, 100), 30);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::progressBar_data()
-{
- QTest::addColumn<bool>("indeterminate");
-
- QTest::newRow("indeterminate:false") << false;
- QTest::newRow("indeterminate:true") << true;
-}
-
-void tst_Gifs::progressBar()
-{
- QFETCH(bool, indeterminate);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(4);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-progressbar%1").arg(
- indeterminate ? QLatin1String("-indeterminate.qml") : QLatin1String(".qml")));
-
- gifRecorder.start();
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::stackView_data()
-{
- QTest::addColumn<QString>("name");
- QTest::addColumn<int>("duration");
-
- QTest::newRow("push") << "push" << 8;
- QTest::newRow("pop") << "pop" << 6;
- QTest::newRow("unwind") << "unwind" << 6;
- QTest::newRow("replace") << "replace" << 6;
-}
-
-void tst_Gifs::stackView()
-{
- QFETCH(QString, name);
- QFETCH(int, duration);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(duration);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-stackview-%1.qml").arg(name));
-
- gifRecorder.start();
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::drawer()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(4);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-drawer.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QObject *drawer = window->property("drawer").value<QObject*>();
- qreal width = drawer->property("width").toReal();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1), 100);
- moveSmoothly(window, QPoint(1, 1), QPoint(width, 1), width, QEasingCurve::InOutBack, 1);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(width, 1), 30);
-
- QTest::qWait(1000);
- QMetaObject::invokeMethod(drawer, "close");
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::delayButton()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(9);
- gifRecorder.setQmlFileName("qtquickcontrols2-delaybutton.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1500);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 200);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1500);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1730);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 2070); // 0.69 * 3000
-
- gifRecorder.waitForFinish();
-}
-
-QTEST_MAIN(tst_Gifs)
-
-#include "tst_gifs.moc"
diff --git a/tests/manual/headerview/CMakeLists.txt b/tests/manual/headerview/CMakeLists.txt
deleted file mode 100644
index 035082d1..00000000
--- a/tests/manual/headerview/CMakeLists.txt
+++ /dev/null
@@ -1,48 +0,0 @@
-# Generated from headerview.pro.
-
-#####################################################################
-## headerview Binary:
-#####################################################################
-
-qt_internal_add_manual_test(headerview
- GUI
- SOURCES
- main.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Qml
- Qt::Quick
- Qt::QuickControls2
- Qt::QuickControls2Private
- Qt::QuickPrivate
- Qt::QuickTemplates2
- Qt::QuickTemplates2Private
-)
-
-# Resources:
-set(qmake_immediate_resource_files
- "main.qml"
-)
-
-qt_internal_add_resource(headerview "qmake_immediate"
- PREFIX
- "/"
- FILES
- ${qmake_immediate_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:headerview.pro:<TRUE>:
-# TEMPLATE = "app"
-
-## Scopes:
-#####################################################################
-
-#### Keys ignored in scope 2:.:.:headerview.pro:QNX:
-# target.path = "/tmp/$${TARGET}/bin"
-
-#### Keys ignored in scope 4:.:.:headerview.pro:UNIX AND NOT ANDROID:
-# target.path = "/opt/$${TARGET}/bin"
-
-#### Keys ignored in scope 5:.:.:headerview.pro:NOT target.path_ISEMPTY:
-# INSTALLS = "target"
diff --git a/tests/manual/headerview/headerview.pro b/tests/manual/headerview/headerview.pro
deleted file mode 100644
index 474cc921..00000000
--- a/tests/manual/headerview/headerview.pro
+++ /dev/null
@@ -1,10 +0,0 @@
-TEMPLATE = app
-TARGET = headerview
-QT += qml quick quick-private quickcontrols2 quickcontrols2-private \
- quicktemplates2-private quicktemplates2
-SOURCES += main.cpp
-RESOURCES += main.qml
-# Default rules for deployment.
-qnx: target.path = /tmp/$${TARGET}/bin
-else: unix:!android: target.path = /opt/$${TARGET}/bin
-!isEmpty(target.path): INSTALLS += target
diff --git a/tests/manual/headerview/main.cpp b/tests/manual/headerview/main.cpp
deleted file mode 100644
index a11f8627..00000000
--- a/tests/manual/headerview/main.cpp
+++ /dev/null
@@ -1,217 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the QtQuick module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QAbstractTableModel>
-#include <QDebug>
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-class TestTableModel : public QAbstractTableModel {
- Q_OBJECT
- Q_PROPERTY(int rowCount READ rowCount WRITE setRowCount NOTIFY rowCountChanged)
- Q_PROPERTY(int columnCount READ columnCount WRITE setColumnCount NOTIFY columnCountChanged)
-
-public:
- TestTableModel(QObject *parent = nullptr)
- : QAbstractTableModel(parent)
- {
- }
-
- int rowCount(const QModelIndex & = QModelIndex()) const override
- {
- return m_rows;
- }
- virtual void setRowCount(int count)
- {
- beginResetModel();
- m_rows = count;
- emit rowCountChanged();
- endResetModel();
- }
-
- int columnCount(const QModelIndex & = QModelIndex()) const override
- {
- return m_cols;
- }
- virtual void setColumnCount(int count)
- {
- beginResetModel();
- m_cols = count;
- emit columnCountChanged();
- endResetModel();
- }
-
- int indexValue(const QModelIndex &index) const
- {
- return index.row() + (index.column() * rowCount());
- }
-
- Q_INVOKABLE QModelIndex toQModelIndex(int serialIndex)
- {
- return createIndex(serialIndex % rowCount(), serialIndex / rowCount());
- }
-
- Q_INVOKABLE QVariant data(int row, int col)
- {
- return data(createIndex(row, col), Qt::DisplayRole);
- }
- QVariant data(const QModelIndex &index, int role) const override
- {
- if (!index.isValid())
- return QVariant();
-
- switch (role) {
- case Qt::DisplayRole:
- return QLatin1String("Foo");
- case Qt::EditRole:
- return m_checkedCells.contains(indexValue(index));
- default:
- return QVariant();
- }
- }
-
- bool setData(const QModelIndex &index, const QVariant &value,
- int role = Qt::EditRole) override
- {
-
- if (role != Qt::EditRole)
- return false;
-
- int i = indexValue(index);
- bool checked = value.toBool();
- if (checked == m_checkedCells.contains(i))
- return false;
-
- if (checked)
- m_checkedCells.insert(i);
- else
- m_checkedCells.remove(i);
-
- emit dataChanged(index, index, { role });
- return true;
- }
-
- Q_INVOKABLE QHash<int, QByteArray> roleNames() const override
- {
- return {
- { Qt::DisplayRole, "display" },
- { Qt::EditRole, "edit" }
- };
- }
-
-signals:
- void rowCountChanged();
- void columnCountChanged();
-
-private:
- int m_rows = 0;
- int m_cols = 0;
-
- QSet<int> m_checkedCells;
-};
-
-class TestTableModelWithHeader : public TestTableModel {
-
- Q_OBJECT
-public:
- void setRowCount(int count) override
- {
- vData.resize(count);
- TestTableModel::setRowCount(count);
- }
-
- void setColumnCount(int count) override
- {
- hData.resize(count);
- TestTableModel::setColumnCount(count);
- }
-
- Q_INVOKABLE QVariant headerData(int section, Qt::Orientation orientation,
- int role = Qt::DisplayRole) const override
- {
- const bool isHorizontal = orientation == Qt::Horizontal;
- auto sectionCount = isHorizontal ? columnCount() : rowCount();
- if (section < 0 || section >= sectionCount)
- return QVariant();
- switch (role) {
- case Qt::DisplayRole:
- return (isHorizontal ? QString::fromLatin1("Column %1") : QString::fromLatin1("Row %1")).arg(section);
- case Qt::EditRole: {
- auto &data = isHorizontal ? hData : vData;
- return data[section].toString();
- }
- default:
- return QVariant();
- }
- }
-
- Q_INVOKABLE bool setHeaderData(int section, Qt::Orientation orientation,
- const QVariant &value, int role = Qt::EditRole) override
- {
- qDebug() << Q_FUNC_INFO
- << "section:" << section
- << "orient:" << orientation
- << "value:" << value
- << "role:" << QAbstractItemModel::roleNames()[role];
- auto sectionCount = orientation == Qt::Horizontal ? columnCount() : rowCount();
- if (section < 0 || section >= sectionCount)
- return false;
- auto &data = orientation == Qt::Horizontal ? hData : vData;
- data[section] = value;
- emit headerDataChanged(orientation, section, section);
- return true;
- }
-
-private:
- QList<QVariant> hData, vData;
-};
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- qmlRegisterType<TestTableModel>("TestTableModel", 0, 1, "TestTableModel");
- qmlRegisterType<TestTableModelWithHeader>("TestTableModelWithHeader", 0, 1, "TestTableModelWithHeader");
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
-
- return app.exec();
-}
-
-#include "main.moc"
diff --git a/tests/manual/headerview/main.qml b/tests/manual/headerview/main.qml
deleted file mode 100644
index abce1c00..00000000
--- a/tests/manual/headerview/main.qml
+++ /dev/null
@@ -1,126 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQml.Models
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Shapes
-import QtQuick.Window
-import Qt.labs.qmlmodels
-import TestTableModelWithHeader
-
-Window {
- visible: true
- width: 640
- height: 480
- title: qsTr("HeaderView Test")
-
- TestTableModelWithHeader {
- id: tableModel
- rowCount: 50
- columnCount: 80
- }
-
- TableView {
- id: tableView
- anchors.top: parent.top
- anchors.topMargin: horizontalHeader.height + rowSpacing
- anchors.left: parent.left
- anchors.leftMargin: verticalHeader.width + columnSpacing
- model: tableModel
- rightMargin: 100
- bottomMargin: 100
- columnSpacing: 4
- rowSpacing: 4
- syncDirection: Qt.Vertical | Qt.Horizontal
- implicitWidth: parent.width + columnSpacing
- implicitHeight: parent.height + rowSpacing
- clip: true
- delegate: Rectangle {
- implicitWidth: 150
- implicitHeight: 50
- color: "#e6ecf5"
-
- CheckBox {
- anchors.fill: parent
- text: model.display
- checked: model.edit
- leftPadding: 12
- onClicked: model.edit = checked
- }
- }
- }
-
- HorizontalHeaderView {
- id: horizontalHeader
- objectName: "horizontalHeader"
- anchors.top: parent.top
- anchors.left: tableView.left
- syncView: tableView
- clip: true
- }
-
- VerticalHeaderView {
- id: verticalHeader
- objectName: "verticalHeader"
- anchors.top: tableView.top
- syncView: tableView
- clip: true
- }
-
- ToolButton {
- width: verticalHeader.width
- height: horizontalHeader.height
- onClicked: {
- horizontalHeader.contentX = 0
- verticalHeader.contentY = 0
- }
- }
-}
diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro
deleted file mode 100644
index fba3c12a..00000000
--- a/tests/manual/manual.pro
+++ /dev/null
@@ -1,13 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- buttons \
- gifs \
- fonts \
- headerview \
- screenshots \
- styles \
- testbench
-
-qtConfig(systemtrayicon): SUBDIRS += systemtrayicon
-
-qtHaveModule(widgets): SUBDIRS += viewinqwidget
diff --git a/tests/manual/nativestyle/.gitignore b/tests/manual/nativestyle/.gitignore
deleted file mode 100644
index fab7372d..00000000
--- a/tests/manual/nativestyle/.gitignore
+++ /dev/null
@@ -1,73 +0,0 @@
-# This file is used to ignore files which are generated
-# ----------------------------------------------------------------------------
-
-*~
-*.autosave
-*.a
-*.core
-*.moc
-*.o
-*.obj
-*.orig
-*.rej
-*.so
-*.so.*
-*_pch.h.cpp
-*_resource.rc
-*.qm
-.#*
-*.*#
-core
-!core/
-tags
-.DS_Store
-.directory
-*.debug
-Makefile*
-*.prl
-*.app
-moc_*.cpp
-ui_*.h
-qrc_*.cpp
-Thumbs.db
-*.res
-*.rc
-/.qmake.cache
-/.qmake.stash
-
-# qtcreator generated files
-*.pro.user*
-
-# xemacs temporary files
-*.flc
-
-# Vim temporary files
-.*.swp
-
-# Visual Studio generated files
-*.ib_pdb_index
-*.idb
-*.ilk
-*.pdb
-*.sln
-*.suo
-*.vcproj
-*vcproj.*.*.user
-*.ncb
-*.sdf
-*.opensdf
-*.vcxproj
-*vcxproj.*
-
-# MinGW generated files
-*.Debug
-*.Release
-
-# Python byte code
-*.pyc
-
-# Binaries
-# --------
-*.dll
-*.exe
-
diff --git a/tests/manual/nativestyle/Buttons.qml b/tests/manual/nativestyle/Buttons.qml
deleted file mode 100644
index d5eb2a9c..00000000
--- a/tests/manual/nativestyle/Buttons.qml
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Buttons"
-
- Row {
- spacing: container.rowSpacing
-
- Button {
- text: "Default"
- }
-
- Button {
- text: "Disabled"
- enabled: false
- }
-
- Button {
- text: "Small"
- property bool qqc2_style_small
- }
-
- Button {
- text: "Mini"
- property bool qqc2_style_mini
- }
- }
-
- Row {
- spacing: container.rowSpacing
-
- Button {
- text: "Explicit height"
- height: 50
- }
-
- Button {
- text: "Explicit width"
- width: 200
- }
- }
-
- Row {
- spacing: container.rowSpacing
-
- Button {
- text: "Highlighted"
- highlighted: true
- }
-
- Button {
- text: "Flat"
- flat: true
- }
-
- Button {
- text: "Checkable"
- checkable: true
- }
- }
-}
diff --git a/tests/manual/nativestyle/CMakeLists.txt b/tests/manual/nativestyle/CMakeLists.txt
deleted file mode 100644
index 269d2301..00000000
--- a/tests/manual/nativestyle/CMakeLists.txt
+++ /dev/null
@@ -1,84 +0,0 @@
-# Generated from desktopgallery.pro.
-# special case skip regeneration
-# Remove the skip, after somebody figures out if this is supposed
-# to be a manual test, or a full-blown project like it is now
-# because it was copied over from an example.
-
-cmake_minimum_required(VERSION 3.14)
-project(desktopgallery LANGUAGES CXX)
-
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
-if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
-endif()
-
-set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quickcontrols2/desktopgallery")
-
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS Quick)
-find_package(Qt6 COMPONENTS QuickControls2)
-
-qt_add_executable(desktopgallery
- main.cpp
-)
-target_link_libraries(desktopgallery PUBLIC
- Qt::Core
- Qt::Gui
- Qt::Quick
- Qt::QuickControls2
-)
-
-
-# Resources:
-set(qmake_immediate_resource_files
- "Buttons.qml"
- "CheckBoxes.qml"
- "ComboBoxes.qml"
- "ControlContainer.qml"
- "CustomButtons.qml"
- "CustomCheckBoxes.qml"
- "CustomComboBoxes.qml"
- "CustomDials.qml"
- "CustomFrames.qml"
- "CustomProgressBars.qml"
- "CustomRadioButtons.qml"
- "CustomScrollBars.qml"
- "CustomSliders.qml"
- "CustomSpinBoxes.qml"
- "CustomTextAreas.qml"
- "CustomTextFields.qml"
- "Dials.qml"
- "Frames.qml"
- "ProgressBars.qml"
- "RadioButtons.qml"
- "ScrollBars.qml"
- "Sliders.qml"
- "SlidersMini.qml"
- "SlidersSmall.qml"
- "SpinBoxes.qml"
- "TextAreas.qml"
- "TextFields.qml"
- "checkbox-icon.png"
- "checkbox-icon16.png"
- "checkbox-icon@2x.png"
- "main.qml"
-)
-
-qt6_add_resources(desktopgallery "qmake_immediate"
- PREFIX
- "/"
- FILES
- ${qmake_immediate_resource_files}
-)
-
-install(TARGETS desktopgallery
- RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
- BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
- LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
-)
diff --git a/tests/manual/nativestyle/CheckBoxes.qml b/tests/manual/nativestyle/CheckBoxes.qml
deleted file mode 100644
index c24e9a54..00000000
--- a/tests/manual/nativestyle/CheckBoxes.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "CheckBoxes"
-
- Row {
- spacing: container.rowSpacing
-
- CheckBox {
- text: "Default"
- checked: true
- }
-
- CheckBox {
- text: "Disabled"
- enabled: false
- }
-
- CheckBox {
- text: "Tri-state"
- tristate: true
- checkState: Qt.PartiallyChecked
- }
-
- CheckBox {
- text: "Small"
- property bool qqc2_style_small
- }
-
- CheckBox {
- text: "Mini"
- property bool qqc2_style_mini
- checked: true
- }
- }
-}
diff --git a/tests/manual/nativestyle/ComboBoxes.qml b/tests/manual/nativestyle/ComboBoxes.qml
deleted file mode 100644
index 21dd5b09..00000000
--- a/tests/manual/nativestyle/ComboBoxes.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "ComboBoxes"
-
- Row {
- spacing: container.rowSpacing
-
- ComboBox {
- model: [ "Default", "Banana", "Apple", "Coconut" ]
- }
-
- ComboBox {
- model: [ "Disabled", "Banana", "Apple", "Coconut" ]
- enabled: false
- }
-
- ComboBox {
- model: [ "Small", "Banana", "Apple", "Coconut" ]
- property bool qqc2_style_small
- }
-
- ComboBox {
- model: [ "Mini", "Banana", "Apple", "Coconut" ]
- property bool qqc2_style_mini
- }
- }
-
- Row {
- spacing: container.rowSpacing
-
- ComboBox {
- model: [ "Default", "Banana", "Apple", "Coconut" ]
- editable: true
- }
-
- ComboBox {
- model: [ "Disabled", "Banana", "Apple", "Coconut" ]
- enabled: false
- editable: true
- }
-
- ComboBox {
- model: [ "Small", "Banana", "Apple", "Coconut" ]
- editable: true
- property bool qqc2_style_small
- }
-
- ComboBox {
- model: [ "Mini", "Banana", "Apple", "Coconut" ]
- editable: true
- property bool qqc2_style_mini
- }
- }
-}
diff --git a/tests/manual/nativestyle/ControlContainer.qml b/tests/manual/nativestyle/ControlContainer.qml
deleted file mode 100644
index 5ac9f6bb..00000000
--- a/tests/manual/nativestyle/ControlContainer.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-Item {
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.rightMargin: 7
- implicitHeight: groupBox.height
-
- property alias title: groupBox.title
- property real rowSpacing: 20
-
- default property alias data: layout.data
-
- GroupBox {
- id: groupBox
- anchors.left: parent.left
- anchors.right: parent.right
-
- ColumnLayout {
- id: layout
- spacing: 15
- }
- }
-}
diff --git a/tests/manual/nativestyle/CustomButtons.qml b/tests/manual/nativestyle/CustomButtons.qml
deleted file mode 100644
index 6a01faed..00000000
--- a/tests/manual/nativestyle/CustomButtons.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Buttons"
-
- Row {
- spacing: container.rowSpacing
-
- Button {
- id: buttonWithCustomContentItem
- text: "Custom contentItem"
- contentItem: Rectangle {
- implicitWidth: 120
- implicitHeight: il.implicitHeight
- color: buttonWithCustomContentItem.pressed ? "green" : "lightGreen"
- Text {
- id: il
- text: buttonWithCustomContentItem.text
- anchors.centerIn: parent
- }
- }
- }
-
- Button {
- id: cb
- text: "Custom background"
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 30
- radius: 5
- color: cb.pressed ? "LightGray" : "gray"
- }
- }
-
- Button {
- id: cb2
- text: "All custom"
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 30
- radius: 5
- color: cb2.pressed ? "LightGray" : "gray"
- }
- contentItem: Rectangle {
- implicitWidth: il2.implicitWidth
- implicitHeight: il2.implicitHeight
- radius: 3
- color: "lightgray"
- Text {
- id: il2
- text: cb2.text
- anchors.centerIn: parent
- }
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/CustomCheckBoxes.qml b/tests/manual/nativestyle/CustomCheckBoxes.qml
deleted file mode 100644
index 00dc7378..00000000
--- a/tests/manual/nativestyle/CustomCheckBoxes.qml
+++ /dev/null
@@ -1,137 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Controls.impl
-
-ControlContainer {
- id: container
- title: "CheckBoxes"
-
- Row {
- spacing: container.rowSpacing
-
- CheckBox {
- id: customContentItem
- text: "Custom content item"
- contentItem: Text {
- text: customContentItem.text
- color: "green"
- leftPadding: customContentItem.indicator.width + customContentItem.spacing
- }
- }
-
- CheckBox {
- id: customIndicator
- text: "Custom indicator"
- indicator: Rectangle {
- implicitWidth: 15
- implicitHeight: 15
-
- x: customIndicator.text ? customIndicator.leftPadding : customIndicator.leftPadding + (customIndicator.availableWidth - width) / 2
- y: customIndicator.topPadding + (customIndicator.availableHeight - height) / 2
-
- color: customIndicator.down ? customIndicator.palette.light : customIndicator.palette.base
- border.color: "green"
- border.width: 2
-
- ColorImage {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- defaultColor: "#353637"
- scale: 0.5
- color: "green"
- source: "qrc:/qt-project.org/imports/QtQuick/Controls/Basic/images/check.png"
- visible: customIndicator.checkState === Qt.Checked
- }
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 16
- height: 3
- color: customIndicator.palette.text
- visible: customIndicator.checkState === Qt.PartiallyChecked
- }
- }
- }
-
- CheckBox {
- id: allCustom
- text: "All custom"
-
- contentItem: Text {
- text: allCustom.text
- color: "green"
- leftPadding: allCustom.indicator.width + allCustom.spacing
- rightPadding: allCustom.indicator.width + allCustom.spacing
- }
-
- indicator: Rectangle {
- implicitWidth: 15
- implicitHeight: 15
-
- x: allCustom.text ? allCustom.leftPadding : allCustom.leftPadding + (allCustom.availableWidth - width) / 2
- y: allCustom.topPadding + (allCustom.availableHeight - height) / 2
-
- color: allCustom.down ? allCustom.palette.light : allCustom.palette.base
- border.color: "green"
- border.width: 2
-
- ColorImage {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- defaultColor: "#353637"
- scale: 0.5
- color: "green"
- source: "qrc:/qt-project.org/imports/QtQuick/Controls/Basic/images/check.png"
- visible: allCustom.checkState === Qt.Checked
- }
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 16
- height: 3
- color: "green"
- visible: allCustom.checkState === Qt.PartiallyChecked
- }
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/CustomComboBoxes.qml b/tests/manual/nativestyle/CustomComboBoxes.qml
deleted file mode 100644
index a51cca94..00000000
--- a/tests/manual/nativestyle/CustomComboBoxes.qml
+++ /dev/null
@@ -1,122 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Controls.impl
-
-ControlContainer {
- id: container
- title: "ComboBoxes"
-
- Row {
- spacing: container.rowSpacing
-
- ComboBox {
- id: control
- model: [ "Custom background", "Banana", "Apple", "Coconut" ]
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 20
- color: control.down ? control.palette.mid : control.palette.button
- border.color: "green"
- border.width: 1
- }
- indicator: ColorImage {
- x: control.mirrored ? control.padding : control.width - width - control.padding
- y: control.topPadding + (control.availableHeight - height) / 2
- color: control.palette.dark
- defaultColor: "#353637"
- source: "qrc:/qt-project.org/imports/QtQuick/Controls/Basic/images/double-arrow.png"
- opacity: enabled ? 1 : 0.3
- }
- }
-
- ComboBox {
- model: [ "Banana", "Apple", "Coconut" ]
- contentItem: Rectangle {
- implicitWidth: text.implicitWidth
- color: "lightGreen"
- Text {
- id: text
- text: "Custom content item"
- anchors.centerIn: parent
- }
- }
- }
-
- }
-
- Row {
- spacing: container.rowSpacing
-
- ComboBox {
- id: control2
- model: [ "Custom background", "Banana", "Apple", "Coconut" ]
- editable: true
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 20
- color: control2.down ? control2.palette.mid : control2.palette.button
- border.color: "green"
- border.width: 1
- }
- indicator: ColorImage {
- x: control2.mirrored ? control2.padding : control2.width - width - control2.padding
- y: control2.topPadding + (control2.availableHeight - height) / 2
- color: control2.palette.dark
- defaultColor: "#353637"
- source: "qrc:/qt-project.org/imports/QtQuick/Controls/Basic/images/double-arrow.png"
- opacity: enabled ? 1 : 0.3
- }
- }
-
- ComboBox {
- model: [ "Banana", "Apple", "Coconut" ]
- editable: true
- contentItem: Rectangle {
- implicitWidth: text2.implicitWidth
- color: "lightGreen"
- TextEdit {
- id: text2
- text: "Custom content item"
- anchors.centerIn: parent
- }
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/CustomDials.qml b/tests/manual/nativestyle/CustomDials.qml
deleted file mode 100644
index b0df77b6..00000000
--- a/tests/manual/nativestyle/CustomDials.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick dial1s 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Controls.Basic.impl
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Dials"
-
- Row {
- spacing: container.rowSpacing
-
- Dial {
- id: dial1
- width: 50
- height: 50
- from: 0
- to: 10
- value: 5
-
- background: DialImpl {
- implicitWidth: 184
- implicitHeight: 184
- color: "darkgray"
- progress: dial1.position
- opacity: dial1.enabled ? 1 : 0.3
- }
-
- handle: ColorImage {
- x: dial1.background.x + dial1.background.width / 2 - width / 2
- y: dial1.background.y + dial1.background.height / 2 - height / 2
- width: 14
- height: 10
- color: "green"
- source: "qrc:/qt-project.org/imports/QtQuick/Controls/Basic/images/dial-indicator.png"
- antialiasing: true
- opacity: dial1.enabled ? 1 : 0.3
- transform: [
- Translate {
- y: -Math.min(dial1.background.width, dial1.background.height) * 0.4 + dial1.handle.height / 2
- },
- Rotation {
- angle: dial1.angle
- origin.x: dial1.handle.width / 2
- origin.y: dial1.handle.height / 2
- }
- ]
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/CustomFrames.qml b/tests/manual/nativestyle/CustomFrames.qml
deleted file mode 100644
index e2b045a5..00000000
--- a/tests/manual/nativestyle/CustomFrames.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Frames"
-
- Row {
- spacing: container.rowSpacing
-
- Frame {
- width: 200
- height: 50
- background: Rectangle {
- border.width: 1
- border.color: "green"
- Text {
- anchors.centerIn: parent
- color: "green"
- text: "Custom background"
- }
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/CustomProgressBars.qml b/tests/manual/nativestyle/CustomProgressBars.qml
deleted file mode 100644
index 6ace8f20..00000000
--- a/tests/manual/nativestyle/CustomProgressBars.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Controls.Basic.impl
-
-ControlContainer {
- id: container
- title: "ProgressBars"
-
- property int time: 0
- Timer {
- interval: 1000
- running: true
- repeat: true
- onTriggered: {
- time++
- if (time > 10)
- time = 0
- }
- }
-
- Row {
- spacing: container.rowSpacing
-
- ProgressBar {
- id: c3
- width: 100
- from: 0
- to: 10
- value: time
- indeterminate: false
- padding: 5
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 6
- color: "darkgray"
- }
- contentItem: ProgressBarImpl {
- implicitHeight: 6
- implicitWidth: 100
- progress: c3.position
- indeterminate: false
- color: "lightgreen"
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/CustomRadioButtons.qml b/tests/manual/nativestyle/CustomRadioButtons.qml
deleted file mode 100644
index 8a657cdd..00000000
--- a/tests/manual/nativestyle/CustomRadioButtons.qml
+++ /dev/null
@@ -1,121 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Controls.impl
-
-ControlContainer {
- id: container
- title: "RadioButtons"
-
- Row {
- spacing: container.rowSpacing
-
- RadioButton {
- id: customContentItem
- text: "Custom content item"
- contentItem: Text {
- text: customContentItem.text
- color: "green"
- leftPadding: customContentItem.indicator.width + customContentItem.spacing
- }
- }
-
- RadioButton {
- id: customIndicator
- text: "Custom indicator"
- indicator: Rectangle {
- implicitWidth: 14
- implicitHeight: 14
-
- x: customIndicator.text ? customIndicator.leftPadding : customIndicator.leftPadding + (customIndicator.availableWidth - width) / 2
- y: customIndicator.topPadding + (customIndicator.availableHeight - height) / 2
-
- radius: width / 2
- color: customIndicator.down ? customIndicator.palette.light : customIndicator.palette.base
- border.width: 2
- border.color: "green"
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 5
- height: 5
- radius: width / 2
- color: "green"
- visible: customIndicator.checked
- }
- }
- }
-
- RadioButton {
- id: allCustom
- text: "All custom"
-
- contentItem: Text {
- text: allCustom.text
- color: "green"
- leftPadding: allCustom.indicator.width + allCustom.spacing
- }
-
- indicator: Rectangle {
- implicitWidth: 14
- implicitHeight: 14
-
- x: allCustom.text ? allCustom.leftPadding : allCustom.leftPadding + (allCustom.availableWidth - width) / 2
- y: allCustom.topPadding + (allCustom.availableHeight - height) / 2
-
- radius: width / 2
- color: allCustom.down ? allCustom.palette.light : allCustom.palette.base
- border.width: 2
- border.color: "green"
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 5
- height: 5
- radius: width / 2
- color: "green"
- visible: allCustom.checked
- }
- }
- }
- }
-
-}
diff --git a/tests/manual/nativestyle/CustomScrollBars.qml b/tests/manual/nativestyle/CustomScrollBars.qml
deleted file mode 100644
index 07319952..00000000
--- a/tests/manual/nativestyle/CustomScrollBars.qml
+++ /dev/null
@@ -1,137 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "ScrollBars"
-
- Row {
- spacing: container.rowSpacing
-
- ScrollBar {
- height: 200
- orientation: Qt.Vertical
- size: 0.2
- policy: ScrollBar.AlwaysOn
- background: Rectangle {
- color: "lightgray"
- border.color: "gray"
- border.width: 1
- }
- }
-
- ScrollBar {
- height: 200
- orientation: Qt.Vertical
- size: 0.2
- policy: ScrollBar.AlwaysOn
- contentItem: Rectangle {
- color: "lightgreen"
- border.color: "green"
- border.width: 1
- }
- }
-
- ScrollBar {
- height: 200
- orientation: Qt.Vertical
- size: 0.2
- policy: ScrollBar.AlwaysOn
- background: Rectangle {
- color: "lightgray"
- border.color: "gray"
- border.width: 1
- }
- contentItem: Rectangle {
- implicitWidth: 15
- color: "lightgreen"
- border.color: "green"
- border.width: 1
- }
- }
-
- Column {
- spacing: container.rowSpacing
-
- ScrollBar {
- width: 300
- orientation: Qt.Horizontal
- size: 0.2
- policy: ScrollBar.AlwaysOn
- background: Rectangle {
- color: "lightgray"
- border.color: "gray"
- border.width: 1
- }
- }
-
- ScrollBar {
- width: 300
- orientation: Qt.Horizontal
- size: 0.2
- policy: ScrollBar.AlwaysOn
- contentItem: Rectangle {
- color: "lightgray"
- border.color: "gray"
- border.width: 1
- }
- }
-
- ScrollBar {
- width: 300
- orientation: Qt.Horizontal
- size: 0.2
- policy: ScrollBar.AlwaysOn
- background: Rectangle {
- color: "lightgray"
- border.color: "gray"
- border.width: 1
- }
- contentItem: Rectangle {
- implicitHeight: 15
- color: "lightgreen"
- border.color: "green"
- border.width: 1
- }
- }
- }
- }
-
-}
diff --git a/tests/manual/nativestyle/CustomSliders.qml b/tests/manual/nativestyle/CustomSliders.qml
deleted file mode 100644
index 075c10d3..00000000
--- a/tests/manual/nativestyle/CustomSliders.qml
+++ /dev/null
@@ -1,167 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Sliders"
- property int sliderWidth: 300
- property int sliderHeight: 140
-
- Row {
- spacing: 40
-
- Column {
- spacing: 15
-
- Slider {
- id: customHandle
- width: sliderWidth
- height: 20
- from: 0
- to: 10
- value: 5
- handle: Rectangle {
- id: handle
- width: 12
- height: customHandle.height
- color: "white"
- border.width: 2
-
- x: customHandle.visualPosition * (customHandle.availableWidth - width)
- y: (customHandle.availableHeight - height) / 2
- }
- }
-
- Slider {
- id: customBackground
- width: sliderWidth
- from: 0
- to: 10
- background: Rectangle {
- implicitHeight: 5
- color: "lightgray"
- border.width: 1
- }
- }
-
- Slider {
- id: customAll
- width: sliderWidth
- height: 20
- from: 0
- to: 10
- background: Rectangle {
- implicitHeight: customAll.height
- color: "lightgray"
- border.width: 1
- }
- handle: Rectangle {
- width: 12
- height: customAll.height
- color: "white"
- border.width: 2
-
- x: customAll.visualPosition * (customAll.availableWidth - width)
- y: (customAll.availableHeight - height) / 2
- }
- }
- }
-
- Row {
- spacing: 20
-
- Slider {
- id: customVHandle
- width: 20
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 10
- value: 5
- handle: Rectangle {
- height: 12
- width: customVHandle.width
- color: "white"
- border.width: 2
-
- x: (customVHandle.availableWidth - width) / 2
- y: customVHandle.visualPosition * (customVHandle.availableHeight - height)
- }
- }
-
- Slider {
- id: customVBackground
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 10
- background: Rectangle {
- implicitWidth: 5
- color: "lightgray"
- border.width: 1
- }
- }
-
- Slider {
- id: customVAll
- width: 20
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 10
- value: 5
- handle: Rectangle {
- height: 12
- width: customVHandle.width
- color: "white"
- border.width: 2
-
- x: (customVAll.availableWidth - width) / 2
- y: customVAll.visualPosition * (customVAll.availableHeight - height)
- }
- background: Rectangle {
- implicitWidth: 5
- color: "lightgray"
- border.width: 1
- }
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/CustomSpinBoxes.qml b/tests/manual/nativestyle/CustomSpinBoxes.qml
deleted file mode 100644
index b6de2b57..00000000
--- a/tests/manual/nativestyle/CustomSpinBoxes.qml
+++ /dev/null
@@ -1,171 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "SpinBoxes"
-
- Row {
- spacing: container.rowSpacing
-
- SpinBox {
- id: custombg
- value: 1000
- to: 2000
- background: Rectangle {
- border.color: "green"
- implicitWidth: 50
- }
- }
-
- SpinBox {
- id: customIndicator
- value: 500
- to: 2000
-
- rightPadding: 17
- spacing: 0
- implicitWidth: 60
- implicitHeight: 25
-
- up.indicator: Rectangle {
- x: customIndicator.width - width - 4
- y: 4
- implicitWidth: customIndicator.rightPadding - 4
- implicitHeight: 8
- border.width: 1
- border.color: "green"
- color: customIndicator.up.pressed ? "gray" : "transparent"
- Text {
- text: "+"
- font.pixelSize: 8
- font.bold: true
- anchors.centerIn: parent
- }
- }
-
- down.indicator: Rectangle {
- x: customIndicator.width - width - 4
- y: height + 6
- implicitWidth: customIndicator.rightPadding - 4
- implicitHeight: 8
- border.width: 1
- border.color: "green"
- color: customIndicator.down.pressed ? "gray" : "transparent"
- Text {
- text: "-"
- font.pixelSize: 10
- font.bold: true
- anchors.centerIn: parent
- }
- }
- }
-
- SpinBox {
- id: allCustom
- value: 500
- to: 2000
-
- rightPadding: 17
- spacing: 0
- implicitWidth: 60
- implicitHeight: 25
-
- background: Rectangle {
- border.color: "green"
- implicitWidth: 50
- }
-
- up.indicator: Rectangle {
- x: allCustom.width - width - 4
- y: 4
- implicitWidth: allCustom.rightPadding - 4
- implicitHeight: 8
- border.width: 1
- border.color: "green"
- color: allCustom.up.pressed ? "gray" : "transparent"
- Text {
- text: "+"
- font.pixelSize: 8
- font.bold: true
- anchors.centerIn: parent
- }
- }
-
- down.indicator: Rectangle {
- x: allCustom.width - width - 4
- y: height + 6
- implicitWidth: allCustom.rightPadding - 4
- implicitHeight: 8
- border.width: 1
- border.color: "green"
- color: allCustom.down.pressed ? "gray" : "transparent"
- Text {
- text: "-"
- font.pixelSize: 10
- font.bold: true
- anchors.centerIn: parent
- }
- }
-
- contentItem: TextInput {
- text: allCustom.displayText
- font: allCustom.font
- color: "green"
- selectionColor: allCustom.palette.highlight
- selectedTextColor: allCustom.palette.highlightedText
- horizontalAlignment: Qt.AlignLeft
- verticalAlignment: Qt.AlignVCenter
-
- topPadding: 2
- bottomPadding: 2
- leftPadding: 10
- rightPadding: 10
-
- readOnly: !allCustom.editable
- validator: allCustom.validator
- inputMethodHints: allCustom.inputMethodHints
- }
-
- }
-
- }
-
-}
diff --git a/tests/manual/nativestyle/CustomTextAreas.qml b/tests/manual/nativestyle/CustomTextAreas.qml
deleted file mode 100644
index 77e97b0c..00000000
--- a/tests/manual/nativestyle/CustomTextAreas.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "TextFields"
-
- Row {
- spacing: container.rowSpacing
-
- TextArea {
- id: customBackground
- width: 200
- wrapMode: TextEdit.WordWrap
- text: "Custom background - Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
- + "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- background: Rectangle {
- implicitWidth: customBackground.contentWidth
- implicitHeight: customBackground.contentHeight
- border.width: customBackground.activeFocus ? 2 : 1
- color: control.palette.base
- border.color: "green"
- }
- }
-
- TextArea {
- width: 200
- placeholderText: "Large font"
- font.pixelSize: 20
- wrapMode: TextEdit.WordWrap
- text: "Large font - Lorem ipsum dolor sit amet, consectetur adipiscing elit"
- }
- }
-}
diff --git a/tests/manual/nativestyle/CustomTextFields.qml b/tests/manual/nativestyle/CustomTextFields.qml
deleted file mode 100644
index 3e8ccd1e..00000000
--- a/tests/manual/nativestyle/CustomTextFields.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "TextFields"
-
- Row {
- spacing: container.rowSpacing
-
- TextField {
- placeholderText: "Custom background"
- background: Rectangle {
- implicitWidth: 130
- implicitHeight: 20
- border.width: control.activeFocus ? 2 : 1
- color: control.palette.base
- border.color: "green"
- }
- }
- TextField {
- placeholderText: "Large font"
- font.pixelSize: 20
- }
- }
-}
diff --git a/tests/manual/nativestyle/Dials.qml b/tests/manual/nativestyle/Dials.qml
deleted file mode 100644
index f0655f25..00000000
--- a/tests/manual/nativestyle/Dials.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Dials"
-
- Row {
- spacing: container.rowSpacing
-
- Dial {
- width: 50
- height: 50
- from: 0
- to: 10
- value: 5
- }
-
- Dial {
- width: 50
- height: 50
- from: 0
- to: 10
- value: 5
- stepSize: 1
- property int qqc2_style_tickPosition: 1
- }
- }
-}
diff --git a/tests/manual/nativestyle/Frames.qml b/tests/manual/nativestyle/Frames.qml
deleted file mode 100644
index 220f8d03..00000000
--- a/tests/manual/nativestyle/Frames.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Frames"
-
- Row {
- spacing: container.rowSpacing
-
- Frame {
- width: 100
- height: 50
- }
-
- Frame {
- Rectangle {
- implicitWidth: label.width + 50
- implicitHeight: 45
- Label {
- id: label
- anchors.centerIn: parent
- text: "Frame with contents"
- }
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/ProgressBars.qml b/tests/manual/nativestyle/ProgressBars.qml
deleted file mode 100644
index 8abd076d..00000000
--- a/tests/manual/nativestyle/ProgressBars.qml
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "ProgressBars"
-
- property int time: 0
- Timer {
- interval: 1000
- running: true
- repeat: true
- onTriggered: {
- time++
- if (time > 10)
- time = 0
- }
- }
-
- Row {
- spacing: container.rowSpacing
-
- ProgressBar {
- width: 100
- from: 0
- to: 10
- value: time
- indeterminate: false
- }
-
- ProgressBar {
- width: 100
- from: 0
- to: 10
- value: time
- enabled: false
- indeterminate: false
- }
-
- ProgressBar {
- width: 100
- from: 0
- to: 10
- indeterminate: true
- }
-
- ProgressBar {
- width: 80
- from: 0
- to: 10
- value: time
- indeterminate: false
- property bool qqc2_style_small
- }
-
- ProgressBar {
- width: 60
- from: 0
- to: 10
- value: time
- indeterminate: false
- property bool qqc2_style_mini
- }
- }
-}
diff --git a/tests/manual/nativestyle/RadioButtons.qml b/tests/manual/nativestyle/RadioButtons.qml
deleted file mode 100644
index 24a96b59..00000000
--- a/tests/manual/nativestyle/RadioButtons.qml
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-import QtQuick.Controls.impl
-
-ControlContainer {
- id: container
- title: "RadioButtons"
-
- Row {
- spacing: container.rowSpacing
-
- Column {
- RadioButton {
- text: "Default"
- checked: true
- }
- RadioButton {
- text: "Default"
- }
- RadioButton {
- text: "Default"
- }
- }
-
- Column {
- RadioButton {
- text: "Disabled"
- enabled: false
- }
- RadioButton {
- text: "Disabled"
- enabled: false
- }
- RadioButton {
- text: "Disabled"
- enabled: false
- checked: true
- }
- }
-
- Column {
- RadioButton {
- text: "Small"
- property bool qqc2_style_small
- }
- RadioButton {
- text: "Small"
- checked: true
- property bool qqc2_style_small
- }
- RadioButton {
- text: "Small"
- property bool qqc2_style_small
- }
- }
-
- Column {
- RadioButton {
- text: "Mini"
- property bool qqc2_style_mini
- }
- RadioButton {
- text: "Mini"
- property bool qqc2_style_mini
- }
- RadioButton {
- text: "Mini"
- checked: true
- property bool qqc2_style_mini
- }
- }
- }
-
-}
diff --git a/tests/manual/nativestyle/ScrollBars.qml b/tests/manual/nativestyle/ScrollBars.qml
deleted file mode 100644
index a5764c78..00000000
--- a/tests/manual/nativestyle/ScrollBars.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "ScrollBars"
-
- Row {
- spacing: container.rowSpacing
-
- ScrollBar {
- height: 200
- orientation: Qt.Vertical
- size: 0.2
- policy: ScrollBar.AlwaysOn
- }
-
- ScrollBar {
- height: 150
- orientation: Qt.Vertical
- size: 0.2
- policy: ScrollBar.AlwaysOn
- property bool qqc2_style_small
- }
-
- ScrollBar {
- height: 100
- orientation: Qt.Vertical
- size: 0.2
- policy: ScrollBar.AlwaysOn
- property bool qqc2_style_mini
- }
-
- Column {
- spacing: container.rowSpacing
-
- ScrollBar {
- width: 300
- orientation: Qt.Horizontal
- size: 0.2
- policy: ScrollBar.AlwaysOn
- }
-
- ScrollBar {
- width: 200
- orientation: Qt.Horizontal
- size: 0.2
- policy: ScrollBar.AlwaysOn
- property bool qqc2_style_small
- }
-
- ScrollBar {
- width: 100
- orientation: Qt.Horizontal
- size: 0.2
- policy: ScrollBar.AlwaysOn
- property bool qqc2_style_mini
- }
- }
- }
-
-}
diff --git a/tests/manual/nativestyle/Sliders.qml b/tests/manual/nativestyle/Sliders.qml
deleted file mode 100644
index 81afa26c..00000000
--- a/tests/manual/nativestyle/Sliders.qml
+++ /dev/null
@@ -1,153 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Sliders normal"
- property int sliderWidth: 300
- property int sliderHeight: 140
-
- Row {
- spacing: 40
-
- Column {
- spacing: 15
-
- Slider {
- width: sliderWidth
- from: 0
- to: 10
- value: 5
- }
-
- Slider {
- width: sliderWidth
- from: 0
- to: 10
- value: 5
- enabled: false
- }
-
- Slider {
- width: sliderWidth
- from: 0
- to: 100
- value: 20
- stepSize: 20
-
- property int qqc2_style_tickPosition: 1
- }
-
- Slider {
- width: sliderWidth
- from: 0
- to: 100
- stepSize: 5
- value: 65
-
- property int qqc2_style_tickPosition: 2
- }
-
- Slider {
- // Should show 9 tickmarks
- width: sliderWidth
- from: 3.3
- to: 3.7
- stepSize: 0.05
- value: 3.5
- property int qqc2_style_tickPosition: 3
- }
-
- }
-
- Row {
- spacing: 20
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 10
- value: 5
- }
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 10
- value: 5
- enabled: false
- }
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 100
- value: 20
- stepSize: 20
-
- property int qqc2_style_tickPosition: 1
- }
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 100
- stepSize: 5
- value: 65
-
- property int qqc2_style_tickPosition: 2
- }
- Slider {
- // Should show 9 tickmarks
- height: sliderHeight
- orientation: Qt.Vertical
- from: 3.3
- to: 3.7
- stepSize: 0.05
- value: 3.5
- property int qqc2_style_tickPosition: 3
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/SlidersMini.qml b/tests/manual/nativestyle/SlidersMini.qml
deleted file mode 100644
index 4c7610c4..00000000
--- a/tests/manual/nativestyle/SlidersMini.qml
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Sliders mini"
- property int sliderWidth: 100
- property int sliderHeight: 90
-
- Row {
- spacing: 40
-
- Column {
- spacing: 15
-
- Slider {
- width: sliderWidth
- from: 0
- to: 10
- value: 5
- property bool qqc2_style_mini
- }
-
- Slider {
- width: sliderWidth
- from: 0
- to: 10
- value: 5
- enabled: false
- property bool qqc2_style_mini
- }
-
- Slider {
- width: sliderWidth
- from: 0
- to: 100
- value: 20
- stepSize: 20
-
- property bool qqc2_style_mini
- property int qqc2_style_tickPosition: 1
- }
-
- Slider {
- width: sliderWidth
- from: 0
- to: 100
- stepSize: 5
- value: 65
-
- property bool qqc2_style_mini
- property int qqc2_style_tickPosition: 2
- }
- }
-
- Row {
- spacing: 20
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 10
- value: 5
- property bool qqc2_style_mini
- }
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 10
- value: 5
- enabled: false
- property bool qqc2_style_mini
- }
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 100
- value: 20
- stepSize: 20
-
- property bool qqc2_style_mini
- property int qqc2_style_tickPosition: 1
- }
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 100
- stepSize: 5
- value: 65
-
- property bool qqc2_style_mini
- property int qqc2_style_tickPosition: 2
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/SlidersSmall.qml b/tests/manual/nativestyle/SlidersSmall.qml
deleted file mode 100644
index 04c9cb24..00000000
--- a/tests/manual/nativestyle/SlidersSmall.qml
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "Sliders small"
- property int sliderWidth: 200
- property int sliderHeight: 100
-
- Row {
- spacing: 40
-
- Column {
- spacing: 15
-
- Slider {
- width: sliderWidth
- from: 0
- to: 10
- value: 5
- property bool qqc2_style_small
- }
-
- Slider {
- width: sliderWidth
- from: 0
- to: 10
- value: 5
- enabled: false
- property bool qqc2_style_small
- }
-
- Slider {
- width: sliderWidth
- from: 0
- to: 100
- value: 20
- stepSize: 20
-
- property bool qqc2_style_small
- property int qqc2_style_tickPosition: 1
- }
-
- Slider {
- width: sliderWidth
- from: 0
- to: 100
- stepSize: 5
- value: 65
-
- property bool qqc2_style_small
- property int qqc2_style_tickPosition: 2
- }
- }
-
- Row {
- spacing: 20
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 10
- value: 5
- property bool qqc2_style_small
- }
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 10
- value: 5
- enabled: false
- property bool qqc2_style_small
- }
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 100
- value: 20
- stepSize: 20
-
- property bool qqc2_style_small
- property int qqc2_style_tickPosition: 1
- }
-
- Slider {
- height: sliderHeight
- orientation: Qt.Vertical
- from: 0
- to: 100
- stepSize: 5
- value: 65
-
- property bool qqc2_style_small
- property int qqc2_style_tickPosition: 2
- }
- }
- }
-}
diff --git a/tests/manual/nativestyle/SpinBoxes.qml b/tests/manual/nativestyle/SpinBoxes.qml
deleted file mode 100644
index 552f159b..00000000
--- a/tests/manual/nativestyle/SpinBoxes.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "SpinBoxes"
-
- Row {
- spacing: container.rowSpacing
-
- SpinBox {
- value: 500
- to: 2000
- editable: true
- }
-
- SpinBox {
- value: 0
- enabled: false
- }
-
- SpinBox {
- value: 5
- from: 0
- to: 9
- property bool qqc2_style_small
- }
-
- SpinBox {
- value: 0
- from: -9
- to: 9
- property bool qqc2_style_mini
- }
- }
-
-}
diff --git a/tests/manual/nativestyle/TextAreas.qml b/tests/manual/nativestyle/TextAreas.qml
deleted file mode 100644
index d8d49c02..00000000
--- a/tests/manual/nativestyle/TextAreas.qml
+++ /dev/null
@@ -1,131 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "TextAreas"
-
- Row {
- spacing: container.rowSpacing
-
- TextArea {
- id: defaultTextArea
- width: 200
- wrapMode: TextEdit.WordWrap
- selectByMouse: true
- text: "Default - Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
- + "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- }
-
- TextArea {
- enabled: false
- width: 200
- wrapMode: TextEdit.WordWrap
- selectByMouse: true
- text: "Disabled - Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
- + "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- }
-
- ScrollView {
- id: scrollView
- width: 200
- height: defaultTextArea.height
-
- TextArea {
- text: "Inside ScrollView - Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
- + "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "
- + "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi "
- + "ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit "
- + "in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur "
- + "sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt "
- + "mollit anim id est laborum."
- wrapMode: TextEdit.WordWrap
- selectByMouse: true
- }
- }
- }
-
- Row {
- spacing: container.rowSpacing
-
- Frame {
- id: frame
- contentWidth: textArea.width
- contentHeight: textArea.height
-
- TextArea {
- id: textArea
- width: 200
- height: 80
- wrapMode: TextEdit.WrapAnywhere
- selectByMouse: true
- text: "Inside frame - Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
- + "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- }
- }
-
- Frame {
- contentWidth: 200
- contentHeight: 100
- ScrollView {
- id: scrollView2
- anchors.fill: parent
-
- TextArea {
- id: area2
- text: "Inside Frame and ScrollView - Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
- + "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "
- + "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi "
- + "ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit "
- + "in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur "
- + "sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt "
- + "mollit anim id est laborum."
- wrapMode: TextEdit.WordWrap
- selectByMouse: true
- }
- }
- }
-
- TextArea {
- placeholderText: "Placeholder text"
- selectByMouse: true
- }
- }
-}
diff --git a/tests/manual/nativestyle/TextFields.qml b/tests/manual/nativestyle/TextFields.qml
deleted file mode 100644
index 10e97da5..00000000
--- a/tests/manual/nativestyle/TextFields.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ControlContainer {
- id: container
- title: "TextFields"
-
- Row {
- spacing: container.rowSpacing
-
- TextField {
- text: "Default"
- }
-
- TextField {
- enabled: false
- text: "Disabled"
- }
-
- TextField {
- placeholderText: "Placeholder text"
- }
-
- TextField {
- text: "Small"
- property bool qqc2_style_small
- }
-
- TextField {
- text: "Mini"
- property bool qqc2_style_mini
- }
- }
-}
diff --git a/tests/manual/nativestyle/checkbox-icon.png b/tests/manual/nativestyle/checkbox-icon.png
deleted file mode 100644
index ee669b3a..00000000
--- a/tests/manual/nativestyle/checkbox-icon.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/nativestyle/checkbox-icon16.png b/tests/manual/nativestyle/checkbox-icon16.png
deleted file mode 100644
index 8d89eab8..00000000
--- a/tests/manual/nativestyle/checkbox-icon16.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/nativestyle/checkbox-icon@2x.png b/tests/manual/nativestyle/checkbox-icon@2x.png
deleted file mode 100644
index 51c5601d..00000000
--- a/tests/manual/nativestyle/checkbox-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/nativestyle/main.cpp b/tests/manual/nativestyle/main.cpp
deleted file mode 100644
index cc487531..00000000
--- a/tests/manual/nativestyle/main.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QtQuickControls2/qquickstyle.h>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- const QUrl url(QStringLiteral("qrc:/main.qml"));
- QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
- &app, [url](QObject *obj, const QUrl &objUrl) {
- if (!obj && url == objUrl)
- QCoreApplication::exit(-1);
- }, Qt::QueuedConnection);
- engine.load(url);
-
- return app.exec();
-}
diff --git a/tests/manual/nativestyle/main.qml b/tests/manual/nativestyle/main.qml
deleted file mode 100644
index 5e44118c..00000000
--- a/tests/manual/nativestyle/main.qml
+++ /dev/null
@@ -1,121 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Controls
-import QtQuick.Layouts
-
-ApplicationWindow {
- visible: true
- width: 800
- height: 600
- title: qsTr("Desktop Gallery")
-
- TabBar {
- id: bar
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.margins: 20
- anchors.rightMargin: 40
-
- TabButton {
- text: qsTr("Default controls")
- }
-
- TabButton {
- text: qsTr("Customized controls")
- }
- }
-
- StackLayout {
- currentIndex: bar.currentIndex
- anchors.top: bar.bottom
- anchors.bottom: parent.bottom
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.margins: 20
-
- ScrollView {
- contentWidth: availableWidth
-
- Column {
- anchors.left: parent.left
- anchors.right: parent.right
- spacing: 20
-
- Buttons { }
- CheckBoxes { }
- RadioButtons { }
- SpinBoxes { }
- TextFields { }
- TextAreas { }
- ComboBoxes { }
- Dials { }
- Frames { }
- ProgressBars { }
- ScrollBars { }
- Sliders { }
- SlidersSmall { }
- SlidersMini { }
- }
- }
-
- ScrollView {
- contentWidth: availableWidth
-
- Column {
- anchors.left: parent.left
- anchors.right: parent.right
- spacing: 20
-
- CustomButtons { }
- CustomCheckBoxes { }
- CustomRadioButtons { }
- CustomSpinBoxes { }
- CustomTextFields { }
- CustomTextAreas { }
- CustomComboBoxes { }
- CustomDials { }
- CustomFrames { }
- CustomProgressBars { }
- CustomScrollBars { }
- CustomSliders { }
- }
- }
- }
-
-}
diff --git a/tests/manual/nativestyle/nativestyle.pro b/tests/manual/nativestyle/nativestyle.pro
deleted file mode 100644
index 9c700430..00000000
--- a/tests/manual/nativestyle/nativestyle.pro
+++ /dev/null
@@ -1,39 +0,0 @@
-QT += quick quickcontrols2
-
-SOURCES += \
- main.cpp
-
-QML_FILES = \
- main.qml \
- ControlContainer.qml \
- Buttons.qml \
- CustomButtons.qml \
- Sliders.qml \
- SlidersSmall.qml \
- SlidersMini.qml \
- CustomSliders.qml \
- CheckBoxes.qml \
- CustomCheckBoxes.qml \
- RadioButtons.qml \
- CustomRadioButtons.qml \
- SpinBoxes.qml \
- CustomSpinBoxes.qml \
- TextFields.qml \
- CustomTextFields.qml \
- Frames.qml \
- CustomFrames.qml \
- TextAreas.qml \
- CustomTextAreas.qml \
- ComboBoxes.qml \
- CustomComboBoxes.qml \
- ScrollBars.qml \
- CustomScrollBars.qml \
- ProgressBars.qml \
- CustomProgressBars.qml \
- Dials.qml \
- CustomDials.qml \
-
-OTHER_FILES += $$QML_FILES
-RESOURCES += $$QML_FILES
-RESOURCES += checkbox-icon.png checkbox-icon16.png checkbox-icon@2x.png
-
diff --git a/tests/manual/nativestyle/qml.qrc b/tests/manual/nativestyle/qml.qrc
deleted file mode 100644
index fba642e5..00000000
--- a/tests/manual/nativestyle/qml.qrc
+++ /dev/null
@@ -1,7 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- <file>ButtonsTab.qml</file>
- <file>SlidersTab.qml</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/screenshots/CMakeLists.txt b/tests/manual/screenshots/CMakeLists.txt
deleted file mode 100644
index c01418ef..00000000
--- a/tests/manual/screenshots/CMakeLists.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-# Generated from screenshots.pro.
-
-#####################################################################
-## screenshots Binary:
-#####################################################################
-
-qt_internal_add_manual_test(screenshots
- GUI
- SOURCES
- screenshots.cpp
- DEFINES
- SNIPPETS_DIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/imports/controls/doc/snippets\\\"
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Quick
- Qt::Widgets
-)
-
-# Resources:
-set(qmake_immediate_resource_files
- "qtquickcontrols2.conf"
- "screenshots.qml"
-)
-
-qt_internal_add_resource(screenshots "qmake_immediate"
- PREFIX
- "/"
- FILES
- ${qmake_immediate_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:screenshots.pro:<TRUE>:
-# TEMPLATE = "app"
diff --git a/tests/manual/screenshots/qtquickcontrols2.conf b/tests/manual/screenshots/qtquickcontrols2.conf
deleted file mode 100644
index d2081db1..00000000
--- a/tests/manual/screenshots/qtquickcontrols2.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-[Controls]
-Style=Material
-
-[Material]
-;Variant=Dense
diff --git a/tests/manual/screenshots/screenshots.cpp b/tests/manual/screenshots/screenshots.cpp
deleted file mode 100644
index e4e1844d..00000000
--- a/tests/manual/screenshots/screenshots.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QQmlContext>
-#include <QFileInfo>
-#include <QDir>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- const QUrl snippetsDir = QUrl::fromLocalFile(SNIPPETS_DIR);
- Q_ASSERT(snippetsDir.isValid() && QFileInfo(snippetsDir.toLocalFile()).exists());
- engine.rootContext()->setContextProperty("snippetsDir", snippetsDir);
- engine.rootContext()->setContextProperty("screenshotsDir", QUrl::fromLocalFile(QDir::currentPath()));
- engine.rootContext()->setContextProperty("screenshotsDirStr", QDir::currentPath());
- engine.load(QUrl("qrc:/screenshots.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/tests/manual/screenshots/screenshots.pro b/tests/manual/screenshots/screenshots.pro
deleted file mode 100644
index 5894888f..00000000
--- a/tests/manual/screenshots/screenshots.pro
+++ /dev/null
@@ -1,13 +0,0 @@
-TEMPLATE = app
-TARGET = screenshots
-QT += quick widgets
-
-DEFINES += SNIPPETS_DIR=\\\"$$PWD/../../../src/imports/controls/doc/snippets\\\"
-message($$DEFINES)
-
-SOURCES += \
- screenshots.cpp
-
-RESOURCES += \
- screenshots.qml \
- qtquickcontrols2.conf
diff --git a/tests/manual/screenshots/screenshots.qml b/tests/manual/screenshots/screenshots.qml
deleted file mode 100644
index 3496b32b..00000000
--- a/tests/manual/screenshots/screenshots.qml
+++ /dev/null
@@ -1,174 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Layouts
-import QtQuick.Controls
-import Qt.labs.folderlistmodel
-
-ApplicationWindow {
- id: window
- title: "Qt Quick Controls 2 - Screenshots"
- visible: true
- width: Math.max(600, loader.implicitWidth)
- height: Math.max(600, loader.implicitHeight + header.implicitHeight + footer.implicitHeight)
-
- property string currentFilePath
- property url lastSaveUrl
-
- Shortcut {
- sequence: "Ctrl+Q"
- onActivated: Qt.quit()
- }
-
- header: ToolBar {
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: "Choose Snippet"
- focusPolicy: Qt.NoFocus
- onClicked: snippetDrawer.open()
- }
- }
- }
-
- Drawer {
- id: snippetDrawer
- width: window.width / 2
- height: window.height
-
- ListView {
- id: snippetsListView
- anchors.fill: parent
- model: FolderListModel {
- folder: snippetsDir
- nameFilters: ["*.qml"]
- showDirs: false
- }
- delegate: ItemDelegate {
- width: parent.width
- text: fileName
- focusPolicy: Qt.NoFocus
-
- readonly property string baseName: fileBaseName
-
- contentItem: Label {
- text: parent.text
- elide: Text.ElideLeft
- }
- onClicked: {
- snippetsListView.currentIndex = index;
- loader.source = "file:///" + filePath;
- currentFilePath = filePath;
- snippetDrawer.close();
- }
- }
- }
- }
-
- Loader {
- id: loader
- anchors.centerIn: parent
- }
-
- ToolTip {
- id: saveResultToolTip
- x: window.contentItem.width / 2 - width / 2
- y: window.contentItem.height - height - 20
- timeout: 3000
- }
-
- footer: ToolBar {
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: "Open Output Folder"
- focusPolicy: Qt.NoFocus
- onClicked: Qt.openUrlExternally(screenshotsDir)
- }
-
- ToolButton {
- text: "Open Last Screenshot"
- focusPolicy: Qt.NoFocus
- enabled: lastSaveUrl.toString().length > 0
- onClicked: Qt.openUrlExternally(lastSaveUrl)
- }
-
- Item {
- Layout.fillWidth: true
- }
-
- ToolButton {
- text: "Take Screenshot"
- focusPolicy: Qt.NoFocus
- enabled: loader.status === Loader.Ready
- onClicked: {
- if (!loader.item)
- return;
-
- var grabSuccessful = loader.grabToImage(function(result) {
- var savePath = screenshotsDirStr + "/" + snippetsListView.currentItem.baseName + ".png";
- if (result.saveToFile(savePath)) {
- saveResultToolTip.text = "Successfully saved screenshot to output folder";
- lastSaveUrl = screenshotsDir + "/" + snippetsListView.currentItem.baseName + ".png";
- } else {
- saveResultToolTip.text = "Failed to save screenshot";
- }
- })
- if (!grabSuccessful)
- saveResultToolTip.text = "Failed to grab image";
- saveResultToolTip.open();
- }
- }
- }
- }
-}
diff --git a/tests/manual/shared/FontAwesome.otf b/tests/manual/shared/FontAwesome.otf
deleted file mode 100644
index 681bdd4d..00000000
--- a/tests/manual/shared/FontAwesome.otf
+++ /dev/null
Binary files differ
diff --git a/tests/manual/shared/FontAwesome.qml b/tests/manual/shared/FontAwesome.qml
deleted file mode 100644
index d64176b4..00000000
--- a/tests/manual/shared/FontAwesome.qml
+++ /dev/null
@@ -1,746 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick
-
-pragma Singleton
-
-QtObject {
-
- // Font Awesome by Dave Gandy - http://fontawesome.io
- // Font Awesome is licensed under SIL OFL 1.1 (http://scripts.sil.org/OFL)
- property FontLoader fontLoader: FontLoader {
- source: "FontAwesome.otf"
- }
-
- // Generated from copying the contents of https://fortawesome.github.io/Font-Awesome/cheatsheet/ and running it through
- // sed -E 's/([0-9].[0-9])?..fa-([a-zA-Z0-9-]+) (\(alias\) )?\[\&\#x([a-f0-9]+);\]/\2: \"\\\u\4\";/g'
- // | tr \; "\n"
- // | awk '{ r="-[a-z0-9]"; while (match($0, r)) sub(r, toupper(substr($0, RSTART + 1, 1))); print "readonly property string" $0 }'
-
- // Some icon names have been manually edited either because the symbol is reserved or invalid.
-
- // Manually edited. Was "500px"
- readonly property string i500px: "\uf26e"
- readonly property string adjust: "\uf042"
- readonly property string adn: "\uf170"
- readonly property string alignCenter: "\uf037"
- readonly property string alignJustify: "\uf039"
- readonly property string alignLeft: "\uf036"
- readonly property string alignRight: "\uf038"
- readonly property string amazon: "\uf270"
- readonly property string ambulance: "\uf0f9"
- readonly property string anchor: "\uf13d"
- readonly property string android: "\uf17b"
- readonly property string angellist: "\uf209"
- readonly property string angleDoubleDown: "\uf103"
- readonly property string angleDoubleLeft: "\uf100"
- readonly property string angleDoubleRight: "\uf101"
- readonly property string angleDoubleUp: "\uf102"
- readonly property string angleDown: "\uf107"
- readonly property string angleLeft: "\uf104"
- readonly property string angleRight: "\uf105"
- readonly property string angleUp: "\uf106"
- readonly property string apple: "\uf179"
- readonly property string archive: "\uf187"
- readonly property string areaChart: "\uf1fe"
- readonly property string arrowCircleDown: "\uf0ab"
- readonly property string arrowCircleLeft: "\uf0a8"
- readonly property string arrowCircleODown: "\uf01a"
- readonly property string arrowCircleOLeft: "\uf190"
- readonly property string arrowCircleORight: "\uf18e"
- readonly property string arrowCircleOUp: "\uf01b"
- readonly property string arrowCircleRight: "\uf0a9"
- readonly property string arrowCircleUp: "\uf0aa"
- readonly property string arrowDown: "\uf063"
- readonly property string arrowLeft: "\uf060"
- readonly property string arrowRight: "\uf061"
- readonly property string arrowUp: "\uf062"
- readonly property string arrows: "\uf047"
- readonly property string arrowsAlt: "\uf0b2"
- readonly property string arrowsH: "\uf07e"
- readonly property string arrowsV: "\uf07d"
- readonly property string asterisk: "\uf069"
- readonly property string at: "\uf1fa"
- readonly property string automobile: "\uf1b9"
- readonly property string backward: "\uf04a"
- readonly property string balanceScale: "\uf24e"
- readonly property string ban: "\uf05e"
- readonly property string bank: "\uf19c"
- readonly property string barChart: "\uf080"
- readonly property string barChartO: "\uf080"
- readonly property string barcode: "\uf02a"
- readonly property string bars: "\uf0c9"
- readonly property string battery0: "\uf244"
- readonly property string battery1: "\uf243"
- readonly property string battery2: "\uf242"
- readonly property string battery3: "\uf241"
- readonly property string battery4: "\uf240"
- readonly property string batteryEmpty: "\uf244"
- readonly property string batteryFull: "\uf240"
- readonly property string batteryHalf: "\uf242"
- readonly property string batteryQuarter: "\uf243"
- readonly property string batteryThreeQuarters: "\uf241"
- readonly property string bed: "\uf236"
- readonly property string beer: "\uf0fc"
- readonly property string behance: "\uf1b4"
- readonly property string behanceSquare: "\uf1b5"
- readonly property string bell: "\uf0f3"
- readonly property string bellO: "\uf0a2"
- readonly property string bellSlash: "\uf1f6"
- readonly property string bellSlashO: "\uf1f7"
- readonly property string bicycle: "\uf206"
- readonly property string binoculars: "\uf1e5"
- readonly property string birthdayCake: "\uf1fd"
- readonly property string bitbucket: "\uf171"
- readonly property string bitbucketSquare: "\uf172"
- readonly property string bitcoin: "\uf15a"
- readonly property string blackTie: "\uf27e"
- readonly property string bold: "\uf032"
- readonly property string bolt: "\uf0e7"
- readonly property string bomb: "\uf1e2"
- readonly property string book: "\uf02d"
- readonly property string bookmark: "\uf02e"
- readonly property string bookmarkO: "\uf097"
- readonly property string briefcase: "\uf0b1"
- readonly property string btc: "\uf15a"
- readonly property string bug: "\uf188"
- readonly property string building: "\uf1ad"
- readonly property string buildingO: "\uf0f7"
- readonly property string bullhorn: "\uf0a1"
- readonly property string bullseye: "\uf140"
- readonly property string bus: "\uf207"
- readonly property string buysellads: "\uf20d"
- readonly property string cab: "\uf1ba"
- readonly property string calculator: "\uf1ec"
- readonly property string calendar: "\uf073"
- readonly property string calendarCheckO: "\uf274"
- readonly property string calendarMinusO: "\uf272"
- readonly property string calendarO: "\uf133"
- readonly property string calendarPlusO: "\uf271"
- readonly property string calendarTimesO: "\uf273"
- readonly property string camera: "\uf030"
- readonly property string cameraRetro: "\uf083"
- readonly property string car: "\uf1b9"
- readonly property string caretDown: "\uf0d7"
- readonly property string caretLeft: "\uf0d9"
- readonly property string caretRight: "\uf0da"
- readonly property string caretSquareODown: "\uf150"
- readonly property string caretSquareOLeft: "\uf191"
- readonly property string caretSquareORight: "\uf152"
- readonly property string caretSquareOUp: "\uf151"
- readonly property string caretUp: "\uf0d8"
- readonly property string cartArrowDown: "\uf218"
- readonly property string cartPlus: "\uf217"
- readonly property string cc: "\uf20a"
- readonly property string ccAmex: "\uf1f3"
- readonly property string ccDinersClub: "\uf24c"
- readonly property string ccDiscover: "\uf1f2"
- readonly property string ccJcb: "\uf24b"
- readonly property string ccMastercard: "\uf1f1"
- readonly property string ccPaypal: "\uf1f4"
- readonly property string ccStripe: "\uf1f5"
- readonly property string ccVisa: "\uf1f0"
- readonly property string certificate: "\uf0a3"
- readonly property string chain: "\uf0c1"
- readonly property string chainBroken: "\uf127"
- readonly property string check: "\uf00c"
- readonly property string checkCircle: "\uf058"
- readonly property string checkCircleO: "\uf05d"
- readonly property string checkSquare: "\uf14a"
- readonly property string checkSquareO: "\uf046"
- readonly property string chevronCircleDown: "\uf13a"
- readonly property string chevronCircleLeft: "\uf137"
- readonly property string chevronCircleRight: "\uf138"
- readonly property string chevronCircleUp: "\uf139"
- readonly property string chevronDown: "\uf078"
- readonly property string chevronLeft: "\uf053"
- readonly property string chevronRight: "\uf054"
- readonly property string chevronUp: "\uf077"
- readonly property string child: "\uf1ae"
- readonly property string chrome: "\uf268"
- readonly property string circle: "\uf111"
- readonly property string circleO: "\uf10c"
- readonly property string circleONotch: "\uf1ce"
- readonly property string circleThin: "\uf1db"
- readonly property string clipboard: "\uf0ea"
- readonly property string clockO: "\uf017"
- readonly property string clone: "\uf24d"
- readonly property string close: "\uf00d"
- readonly property string cloud: "\uf0c2"
- readonly property string cloudDownload: "\uf0ed"
- readonly property string cloudUpload: "\uf0ee"
- readonly property string cny: "\uf157"
- readonly property string code: "\uf121"
- readonly property string codeFork: "\uf126"
- readonly property string codepen: "\uf1cb"
- readonly property string coffee: "\uf0f4"
- readonly property string cog: "\uf013"
- readonly property string cogs: "\uf085"
- readonly property string columns: "\uf0db"
- readonly property string comment: "\uf075"
- readonly property string commentO: "\uf0e5"
- readonly property string commenting: "\uf27a"
- readonly property string commentingO: "\uf27b"
- readonly property string comments: "\uf086"
- readonly property string commentsO: "\uf0e6"
- readonly property string compass: "\uf14e"
- readonly property string compress: "\uf066"
- readonly property string connectdevelop: "\uf20e"
- readonly property string contao: "\uf26d"
- readonly property string copy: "\uf0c5"
- readonly property string copyright: "\uf1f9"
- readonly property string creativeCommons: "\uf25e"
- readonly property string creditCard: "\uf09d"
- readonly property string crop: "\uf125"
- readonly property string crosshairs: "\uf05b"
- readonly property string css3: "\uf13c"
- readonly property string cube: "\uf1b2"
- readonly property string cubes: "\uf1b3"
- readonly property string cut: "\uf0c4"
- readonly property string cutlery: "\uf0f5"
- readonly property string dashboard: "\uf0e4"
- readonly property string dashcube: "\uf210"
- readonly property string database: "\uf1c0"
- readonly property string dedent: "\uf03b"
- readonly property string delicious: "\uf1a5"
- readonly property string desktop: "\uf108"
- readonly property string deviantart: "\uf1bd"
- readonly property string diamond: "\uf219"
- readonly property string digg: "\uf1a6"
- readonly property string dollar: "\uf155"
- readonly property string dotCircleO: "\uf192"
- readonly property string download: "\uf019"
- readonly property string dribbble: "\uf17d"
- readonly property string dropbox: "\uf16b"
- readonly property string drupal: "\uf1a9"
- readonly property string edit: "\uf044"
- readonly property string eject: "\uf052"
- readonly property string ellipsisH: "\uf141"
- readonly property string ellipsisV: "\uf142"
- readonly property string empire: "\uf1d1"
- readonly property string envelope: "\uf0e0"
- readonly property string envelopeO: "\uf003"
- readonly property string envelopeSquare: "\uf199"
- readonly property string eraser: "\uf12d"
- readonly property string eur: "\uf153"
- readonly property string euro: "\uf153"
- readonly property string exchange: "\uf0ec"
- readonly property string exclamation: "\uf12a"
- readonly property string exclamationCircle: "\uf06a"
- readonly property string exclamationTriangle: "\uf071"
- readonly property string expand: "\uf065"
- readonly property string expeditedssl: "\uf23e"
- readonly property string externalLink: "\uf08e"
- readonly property string externalLinkSquare: "\uf14c"
- readonly property string eye: "\uf06e"
- readonly property string eyeSlash: "\uf070"
- readonly property string eyedropper: "\uf1fb"
- readonly property string facebook: "\uf09a"
- readonly property string facebookF: "\uf09a"
- readonly property string facebookOfficial: "\uf230"
- readonly property string facebookSquare: "\uf082"
- readonly property string fastBackward: "\uf049"
- readonly property string fastForward: "\uf050"
- readonly property string fax: "\uf1ac"
- readonly property string feed: "\uf09e"
- readonly property string female: "\uf182"
- readonly property string fighterJet: "\uf0fb"
- readonly property string file: "\uf15b"
- readonly property string fileArchiveO: "\uf1c6"
- readonly property string fileAudioO: "\uf1c7"
- readonly property string fileCodeO: "\uf1c9"
- readonly property string fileExcelO: "\uf1c3"
- readonly property string fileImageO: "\uf1c5"
- readonly property string fileMovieO: "\uf1c8"
- readonly property string fileO: "\uf016"
- readonly property string filePdfO: "\uf1c1"
- readonly property string filePhotoO: "\uf1c5"
- readonly property string filePictureO: "\uf1c5"
- readonly property string filePowerpointO: "\uf1c4"
- readonly property string fileSoundO: "\uf1c7"
- readonly property string fileText: "\uf15c"
- readonly property string fileTextO: "\uf0f6"
- readonly property string fileVideoO: "\uf1c8"
- readonly property string fileWordO: "\uf1c2"
- readonly property string fileZipO: "\uf1c6"
- readonly property string filesO: "\uf0c5"
- readonly property string film: "\uf008"
- readonly property string filter: "\uf0b0"
- readonly property string fire: "\uf06d"
- readonly property string fireExtinguisher: "\uf134"
- readonly property string firefox: "\uf269"
- readonly property string flag: "\uf024"
- readonly property string flagCheckered: "\uf11e"
- readonly property string flagO: "\uf11d"
- readonly property string flash: "\uf0e7"
- readonly property string flask: "\uf0c3"
- readonly property string flickr: "\uf16e"
- readonly property string floppyO: "\uf0c7"
- readonly property string folder: "\uf07b"
- readonly property string folderO: "\uf114"
- readonly property string folderOpen: "\uf07c"
- readonly property string folderOpenO: "\uf115"
- readonly property string font: "\uf031"
- readonly property string fonticons: "\uf280"
- readonly property string forumbee: "\uf211"
- readonly property string forward: "\uf04e"
- readonly property string foursquare: "\uf180"
- readonly property string frownO: "\uf119"
- readonly property string futbolO: "\uf1e3"
- readonly property string gamepad: "\uf11b"
- readonly property string gavel: "\uf0e3"
- readonly property string gbp: "\uf154"
- readonly property string ge: "\uf1d1"
- readonly property string gear: "\uf013"
- readonly property string gears: "\uf085"
- readonly property string genderless: "\uf22d"
- readonly property string getPocket: "\uf265"
- readonly property string gg: "\uf260"
- readonly property string ggCircle: "\uf261"
- readonly property string gift: "\uf06b"
- readonly property string git: "\uf1d3"
- readonly property string gitSquare: "\uf1d2"
- readonly property string github: "\uf09b"
- readonly property string githubAlt: "\uf113"
- readonly property string githubSquare: "\uf092"
- readonly property string gittip: "\uf184"
- readonly property string glass: "\uf000"
- readonly property string globe: "\uf0ac"
- readonly property string google: "\uf1a0"
- readonly property string googlePlus: "\uf0d5"
- readonly property string googlePlusSquare: "\uf0d4"
- readonly property string googleWallet: "\uf1ee"
- readonly property string graduationCap: "\uf19d"
- readonly property string gratipay: "\uf184"
- readonly property string group: "\uf0c0"
- readonly property string hSquare: "\uf0fd"
- readonly property string hackerNews: "\uf1d4"
- readonly property string handGrabO: "\uf255"
- readonly property string handLizardO: "\uf258"
- readonly property string handODown: "\uf0a7"
- readonly property string handOLeft: "\uf0a5"
- readonly property string handORight: "\uf0a4"
- readonly property string handOUp: "\uf0a6"
- readonly property string handPaperO: "\uf256"
- readonly property string handPeaceO: "\uf25b"
- readonly property string handPointerO: "\uf25a"
- readonly property string handRockO: "\uf255"
- readonly property string handScissorsO: "\uf257"
- readonly property string handSpockO: "\uf259"
- readonly property string handStopO: "\uf256"
- readonly property string hddO: "\uf0a0"
- readonly property string header: "\uf1dc"
- readonly property string headphones: "\uf025"
- readonly property string heart: "\uf004"
- readonly property string heartO: "\uf08a"
- readonly property string heartbeat: "\uf21e"
- readonly property string history: "\uf1da"
- readonly property string home: "\uf015"
- readonly property string hospitalO: "\uf0f8"
- readonly property string hotel: "\uf236"
- readonly property string hourglass: "\uf254"
- readonly property string hourglass1: "\uf251"
- readonly property string hourglass2: "\uf252"
- readonly property string hourglass3: "\uf253"
- readonly property string hourglassEnd: "\uf253"
- readonly property string hourglassHalf: "\uf252"
- readonly property string hourglassO: "\uf250"
- readonly property string hourglassStart: "\uf251"
- readonly property string houzz: "\uf27c"
- readonly property string html5: "\uf13b"
- readonly property string iCursor: "\uf246"
- readonly property string ils: "\uf20b"
- readonly property string image: "\uf03e"
- readonly property string inbox: "\uf01c"
- readonly property string indent: "\uf03c"
- readonly property string industry: "\uf275"
- readonly property string info: "\uf129"
- readonly property string infoCircle: "\uf05a"
- readonly property string inr: "\uf156"
- readonly property string instagram: "\uf16d"
- readonly property string institution: "\uf19c"
- readonly property string internetExplorer: "\uf26b"
- readonly property string intersex: "\uf224"
- readonly property string ioxhost: "\uf208"
- readonly property string italic: "\uf033"
- readonly property string joomla: "\uf1aa"
- readonly property string jpy: "\uf157"
- readonly property string jsfiddle: "\uf1cc"
- readonly property string key: "\uf084"
- readonly property string keyboardO: "\uf11c"
- readonly property string krw: "\uf159"
- readonly property string language: "\uf1ab"
- readonly property string laptop: "\uf109"
- readonly property string lastfm: "\uf202"
- readonly property string lastfmSquare: "\uf203"
- readonly property string leaf: "\uf06c"
- readonly property string leanpub: "\uf212"
- readonly property string legal: "\uf0e3"
- readonly property string lemonO: "\uf094"
- readonly property string levelDown: "\uf149"
- readonly property string levelUp: "\uf148"
- readonly property string lifeBouy: "\uf1cd"
- readonly property string lifeBuoy: "\uf1cd"
- readonly property string lifeRing: "\uf1cd"
- readonly property string lifeSaver: "\uf1cd"
- readonly property string lightbulbO: "\uf0eb"
- readonly property string lineChart: "\uf201"
- readonly property string link: "\uf0c1"
- readonly property string linkedin: "\uf0e1"
- readonly property string linkedinSquare: "\uf08c"
- readonly property string linux: "\uf17c"
- readonly property string list: "\uf03a"
- readonly property string listAlt: "\uf022"
- readonly property string listOl: "\uf0cb"
- readonly property string listUl: "\uf0ca"
- readonly property string locationArrow: "\uf124"
- readonly property string lock: "\uf023"
- readonly property string longArrowDown: "\uf175"
- readonly property string longArrowLeft: "\uf177"
- readonly property string longArrowRight: "\uf178"
- readonly property string longArrowUp: "\uf176"
- readonly property string magic: "\uf0d0"
- readonly property string magnet: "\uf076"
- readonly property string mailForward: "\uf064"
- readonly property string mailReply: "\uf112"
- readonly property string mailReplyAll: "\uf122"
- readonly property string male: "\uf183"
- readonly property string map: "\uf279"
- readonly property string mapMarker: "\uf041"
- readonly property string mapO: "\uf278"
- readonly property string mapPin: "\uf276"
- readonly property string mapSigns: "\uf277"
- readonly property string mars: "\uf222"
- readonly property string marsDouble: "\uf227"
- readonly property string marsStroke: "\uf229"
- readonly property string marsStrokeH: "\uf22b"
- readonly property string marsStrokeV: "\uf22a"
- readonly property string maxcdn: "\uf136"
- readonly property string meanpath: "\uf20c"
- readonly property string medium: "\uf23a"
- readonly property string medkit: "\uf0fa"
- readonly property string mehO: "\uf11a"
- readonly property string mercury: "\uf223"
- readonly property string microphone: "\uf130"
- readonly property string microphoneSlash: "\uf131"
- readonly property string minus: "\uf068"
- readonly property string minusCircle: "\uf056"
- readonly property string minusSquare: "\uf146"
- readonly property string minusSquareO: "\uf147"
- readonly property string mobile: "\uf10b"
- readonly property string mobilePhone: "\uf10b"
- readonly property string money: "\uf0d6"
- readonly property string moonO: "\uf186"
- readonly property string mortarBoard: "\uf19d"
- readonly property string motorcycle: "\uf21c"
- readonly property string mousePointer: "\uf245"
- readonly property string music: "\uf001"
- readonly property string navicon: "\uf0c9"
- readonly property string neuter: "\uf22c"
- readonly property string newspaperO: "\uf1ea"
- readonly property string objectGroup: "\uf247"
- readonly property string objectUngroup: "\uf248"
- readonly property string odnoklassniki: "\uf263"
- readonly property string odnoklassnikiSquare: "\uf264"
- readonly property string opencart: "\uf23d"
- readonly property string openid: "\uf19b"
- readonly property string opera: "\uf26a"
- readonly property string optinMonster: "\uf23c"
- readonly property string outdent: "\uf03b"
- readonly property string pagelines: "\uf18c"
- readonly property string paintBrush: "\uf1fc"
- readonly property string paperPlane: "\uf1d8"
- readonly property string paperPlaneO: "\uf1d9"
- readonly property string paperclip: "\uf0c6"
- readonly property string paragraph: "\uf1dd"
- readonly property string paste: "\uf0ea"
- readonly property string pause: "\uf04c"
- readonly property string paw: "\uf1b0"
- readonly property string paypal: "\uf1ed"
- readonly property string pencil: "\uf040"
- readonly property string pencilSquare: "\uf14b"
- readonly property string pencilSquareO: "\uf044"
- readonly property string phone: "\uf095"
- readonly property string phoneSquare: "\uf098"
- readonly property string photo: "\uf03e"
- readonly property string pictureO: "\uf03e"
- readonly property string pieChart: "\uf200"
- readonly property string piedPiper: "\uf1a7"
- readonly property string piedPiperAlt: "\uf1a8"
- readonly property string pinterest: "\uf0d2"
- readonly property string pinterestP: "\uf231"
- readonly property string pinterestSquare: "\uf0d3"
- readonly property string plane: "\uf072"
- readonly property string play: "\uf04b"
- readonly property string playCircle: "\uf144"
- readonly property string playCircleO: "\uf01d"
- readonly property string plug: "\uf1e6"
- readonly property string plus: "\uf067"
- readonly property string plusCircle: "\uf055"
- readonly property string plusSquare: "\uf0fe"
- readonly property string plusSquareO: "\uf196"
- readonly property string powerOff: "\uf011"
- // Manually edited. Was "print"
- readonly property string printer: "\uf02f"
- readonly property string puzzlePiece: "\uf12e"
- readonly property string qq: "\uf1d6"
- readonly property string qrcode: "\uf029"
- readonly property string question: "\uf128"
- readonly property string questionCircle: "\uf059"
- readonly property string quoteLeft: "\uf10d"
- readonly property string quoteRight: "\uf10e"
- readonly property string ra: "\uf1d0"
- readonly property string random: "\uf074"
- readonly property string rebel: "\uf1d0"
- readonly property string recycle: "\uf1b8"
- readonly property string reddit: "\uf1a1"
- readonly property string redditSquare: "\uf1a2"
- readonly property string refresh: "\uf021"
- readonly property string registered: "\uf25d"
- readonly property string remove: "\uf00d"
- readonly property string renren: "\uf18b"
- readonly property string reorder: "\uf0c9"
- readonly property string repeat: "\uf01e"
- readonly property string reply: "\uf112"
- readonly property string replyAll: "\uf122"
- readonly property string retweet: "\uf079"
- readonly property string rmb: "\uf157"
- readonly property string road: "\uf018"
- readonly property string rocket: "\uf135"
- readonly property string rotateLeft: "\uf0e2"
- readonly property string rotateRight: "\uf01e"
- readonly property string rouble: "\uf158"
- readonly property string rss: "\uf09e"
- readonly property string rssSquare: "\uf143"
- readonly property string rub: "\uf158"
- readonly property string ruble: "\uf158"
- readonly property string rupee: "\uf156"
- readonly property string safari: "\uf267"
- readonly property string save: "\uf0c7"
- readonly property string scissors: "\uf0c4"
- readonly property string search: "\uf002"
- readonly property string searchMinus: "\uf010"
- readonly property string searchPlus: "\uf00e"
- readonly property string sellsy: "\uf213"
- readonly property string send: "\uf1d8"
- readonly property string sendO: "\uf1d9"
- readonly property string server: "\uf233"
- readonly property string share: "\uf064"
- readonly property string shareAlt: "\uf1e0"
- readonly property string shareAltSquare: "\uf1e1"
- readonly property string shareSquare: "\uf14d"
- readonly property string shareSquareO: "\uf045"
- readonly property string shekel: "\uf20b"
- readonly property string sheqel: "\uf20b"
- readonly property string shield: "\uf132"
- readonly property string ship: "\uf21a"
- readonly property string shirtsinbulk: "\uf214"
- readonly property string shoppingCart: "\uf07a"
- readonly property string signIn: "\uf090"
- readonly property string signOut: "\uf08b"
- readonly property string signal: "\uf012"
- readonly property string simplybuilt: "\uf215"
- readonly property string sitemap: "\uf0e8"
- readonly property string skyatlas: "\uf216"
- readonly property string skype: "\uf17e"
- readonly property string slack: "\uf198"
- readonly property string sliders: "\uf1de"
- readonly property string slideshare: "\uf1e7"
- readonly property string smileO: "\uf118"
- readonly property string soccerBallO: "\uf1e3"
- readonly property string sort: "\uf0dc"
- readonly property string sortAlphaAsc: "\uf15d"
- readonly property string sortAlphaDesc: "\uf15e"
- readonly property string sortAmountAsc: "\uf160"
- readonly property string sortAmountDesc: "\uf161"
- readonly property string sortAsc: "\uf0de"
- readonly property string sortDesc: "\uf0dd"
- readonly property string sortDown: "\uf0dd"
- readonly property string sortNumericAsc: "\uf162"
- readonly property string sortNumericDesc: "\uf163"
- readonly property string sortUp: "\uf0de"
- readonly property string soundcloud: "\uf1be"
- readonly property string spaceShuttle: "\uf197"
- readonly property string spinner: "\uf110"
- readonly property string spoon: "\uf1b1"
- readonly property string spotify: "\uf1bc"
- readonly property string square: "\uf0c8"
- readonly property string squareO: "\uf096"
- readonly property string stackExchange: "\uf18d"
- readonly property string stackOverflow: "\uf16c"
- readonly property string star: "\uf005"
- readonly property string starHalf: "\uf089"
- readonly property string starHalfEmpty: "\uf123"
- readonly property string starHalfFull: "\uf123"
- readonly property string starHalfO: "\uf123"
- readonly property string starO: "\uf006"
- readonly property string steam: "\uf1b6"
- readonly property string steamSquare: "\uf1b7"
- readonly property string stepBackward: "\uf048"
- readonly property string stepForward: "\uf051"
- readonly property string stethoscope: "\uf0f1"
- readonly property string stickyNote: "\uf249"
- readonly property string stickyNoteO: "\uf24a"
- readonly property string stop: "\uf04d"
- readonly property string streetView: "\uf21d"
- readonly property string strikethrough: "\uf0cc"
- readonly property string stumbleupon: "\uf1a4"
- readonly property string stumbleuponCircle: "\uf1a3"
- readonly property string subscript: "\uf12c"
- readonly property string subway: "\uf239"
- readonly property string suitcase: "\uf0f2"
- readonly property string sunO: "\uf185"
- readonly property string superscript: "\uf12b"
- readonly property string support: "\uf1cd"
- readonly property string table: "\uf0ce"
- readonly property string tablet: "\uf10a"
- readonly property string tachometer: "\uf0e4"
- readonly property string tag: "\uf02b"
- readonly property string tags: "\uf02c"
- readonly property string tasks: "\uf0ae"
- readonly property string taxi: "\uf1ba"
- readonly property string television: "\uf26c"
- readonly property string tencentWeibo: "\uf1d5"
- readonly property string terminal: "\uf120"
- readonly property string textHeight: "\uf034"
- readonly property string textWidth: "\uf035"
- readonly property string th: "\uf00a"
- readonly property string thLarge: "\uf009"
- readonly property string thList: "\uf00b"
- readonly property string thumbTack: "\uf08d"
- readonly property string thumbsDown: "\uf165"
- readonly property string thumbsODown: "\uf088"
- readonly property string thumbsOUp: "\uf087"
- readonly property string thumbsUp: "\uf164"
- readonly property string ticket: "\uf145"
- readonly property string times: "\uf00d"
- readonly property string timesCircle: "\uf057"
- readonly property string timesCircleO: "\uf05c"
- readonly property string tint: "\uf043"
- readonly property string toggleDown: "\uf150"
- readonly property string toggleLeft: "\uf191"
- readonly property string toggleOff: "\uf204"
- readonly property string toggleOn: "\uf205"
- readonly property string toggleRight: "\uf152"
- readonly property string toggleUp: "\uf151"
- readonly property string trademark: "\uf25c"
- readonly property string train: "\uf238"
- readonly property string transgender: "\uf224"
- readonly property string transgenderAlt: "\uf225"
- readonly property string trash: "\uf1f8"
- readonly property string trashO: "\uf014"
- readonly property string tree: "\uf1bb"
- readonly property string trello: "\uf181"
- readonly property string tripadvisor: "\uf262"
- readonly property string trophy: "\uf091"
- readonly property string truck: "\uf0d1"
- // Reserved word. Use turkishLira
- // readonly property string try: "\uf195"
- readonly property string tty: "\uf1e4"
- readonly property string tumblr: "\uf173"
- readonly property string tumblrSquare: "\uf174"
- readonly property string turkishLira: "\uf195"
- readonly property string tv: "\uf26c"
- readonly property string twitch: "\uf1e8"
- readonly property string twitter: "\uf099"
- readonly property string twitterSquare: "\uf081"
- readonly property string umbrella: "\uf0e9"
- readonly property string underline: "\uf0cd"
- readonly property string undo: "\uf0e2"
- readonly property string university: "\uf19c"
- readonly property string unlink: "\uf127"
- readonly property string unlock: "\uf09c"
- readonly property string unlockAlt: "\uf13e"
- readonly property string unsorted: "\uf0dc"
- readonly property string upload: "\uf093"
- readonly property string usd: "\uf155"
- readonly property string user: "\uf007"
- readonly property string userMd: "\uf0f0"
- readonly property string userPlus: "\uf234"
- readonly property string userSecret: "\uf21b"
- readonly property string userTimes: "\uf235"
- readonly property string users: "\uf0c0"
- readonly property string venus: "\uf221"
- readonly property string venusDouble: "\uf226"
- readonly property string venusMars: "\uf228"
- readonly property string viacoin: "\uf237"
- readonly property string videoCamera: "\uf03d"
- readonly property string vimeo: "\uf27d"
- readonly property string vimeoSquare: "\uf194"
- readonly property string vine: "\uf1ca"
- readonly property string vk: "\uf189"
- readonly property string volumeDown: "\uf027"
- readonly property string volumeOff: "\uf026"
- readonly property string volumeUp: "\uf028"
- readonly property string warning: "\uf071"
- readonly property string wechat: "\uf1d7"
- readonly property string weibo: "\uf18a"
- readonly property string weixin: "\uf1d7"
- readonly property string whatsapp: "\uf232"
- readonly property string wheelchair: "\uf193"
- readonly property string wifi: "\uf1eb"
- readonly property string wikipediaW: "\uf266"
- readonly property string windows: "\uf17a"
- readonly property string won: "\uf159"
- readonly property string wordpress: "\uf19a"
- readonly property string wrench: "\uf0ad"
- readonly property string xing: "\uf168"
- readonly property string xingSquare: "\uf169"
- readonly property string yCombinator: "\uf23b"
- readonly property string yCombinatorSquare: "\uf1d4"
- readonly property string yahoo: "\uf19e"
- readonly property string yc: "\uf23b"
- readonly property string ycSquare: "\uf1d4"
- readonly property string yelp: "\uf1e9"
- readonly property string yen: "\uf157"
- readonly property string youtube: "\uf167"
- readonly property string youtubePlay: "\uf16a"
- readonly property string youtubeSquare: "\uf166"
-}
diff --git a/tests/manual/shared/FontAwesomeIcon.qml b/tests/manual/shared/FontAwesomeIcon.qml
deleted file mode 100644
index 74e7c5da..00000000
--- a/tests/manual/shared/FontAwesomeIcon.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick
-import "qrc:/shared"
-
-Text {
- id: icon
- property alias iconId: icon.text
- property alias size: icon.font.pixelSize
- font.family: FontAwesome.fontLoader.name
-}
diff --git a/tests/manual/shared/qmldir b/tests/manual/shared/qmldir
deleted file mode 100644
index 3cb55667..00000000
--- a/tests/manual/shared/qmldir
+++ /dev/null
@@ -1,4 +0,0 @@
-depends QtQuick 2.6
-singleton FontAwesome 1.0 FontAwesome.qml
-FontAwesomeIcon 1.0 FontAwesomeIcon.qml
-
diff --git a/tests/manual/shared/shared.qrc b/tests/manual/shared/shared.qrc
deleted file mode 100644
index 8dbb3421..00000000
--- a/tests/manual/shared/shared.qrc
+++ /dev/null
@@ -1,8 +0,0 @@
-<RCC>
- <qresource prefix="/shared">
- <file>FontAwesome.qml</file>
- <file>FontAwesomeIcon.qml</file>
- <file>FontAwesome.otf</file>
- <file>qmldir</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/styles-cover-flow/CMakeLists.txt b/tests/manual/styles-cover-flow/CMakeLists.txt
deleted file mode 100644
index 4c9fd13b..00000000
--- a/tests/manual/styles-cover-flow/CMakeLists.txt
+++ /dev/null
@@ -1,38 +0,0 @@
-# Generated from styles-cover-flow.pro.
-
-#####################################################################
-## stylescoverflow Binary:
-#####################################################################
-
-qt_internal_add_manual_test(stylescoverflow
- GUI
- SOURCES
- styles-cover-flow.cpp
- DEFINES
- DOC_IMAGES_DIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/imports/controls/doc/images/\\\"
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Quick
- Qt::QuickControls2
-)
-
-file(GLOB resource_glob_0 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.qml,")
-foreach(file IN LISTS resource_glob_0)
- set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/${file}" PROPERTIES QT_RESOURCE_ALIAS "${file}")
-endforeach()
-
-# Resources:
-set(qmake_immediate_resource_files
- ${resource_glob_0}
-)
-
-qt_internal_add_resource(stylescoverflow "qmake_immediate"
- PREFIX
- "/"
- FILES
- ${qmake_immediate_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:styles-cover-flow.pro:<TRUE>:
-# TEMPLATE = "app"
diff --git a/tests/manual/styles-cover-flow/CoverFlowDelegate.qml b/tests/manual/styles-cover-flow/CoverFlowDelegate.qml
deleted file mode 100644
index 061ecfa0..00000000
--- a/tests/manual/styles-cover-flow/CoverFlowDelegate.qml
+++ /dev/null
@@ -1,136 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtGraphicalEffects
-import QtQuick
-
-Item {
- id: root
- width: PathView.view.delegateSize
- height: width
- z: PathView.zOrder
-
- transform: [
- Rotation {
- angle: root.PathView.rotateY
- origin.x: sourceImage.width / 2
- origin.y: sourceImage.height * 0.3
- axis.x: 0
- axis.y: 1
- axis.z: 0
- },
- Scale {
- xScale: 1.0
- yScale: root.PathView.scale
- origin.x: sourceImage.width / 2
- origin.y: sourceImage.height * 0.4
- }
- ]
-
- Image {
- id: sourceImage
- width: root.PathView.view.delegateSize
- height: width
- fillMode: Image.PreserveAspectFit
- source: "file:/" + docImagesDir + model.source
-
- Rectangle {
- x: (sourceImage.width - sourceImage.paintedWidth) / 2
- width: sourceImage.paintedWidth + (index == 6 ? 2 : 1)
- height: sourceImage.height
- color: "transparent"
- border.color: "#f4f4f4"
- antialiasing: true
- visible: !model.dark
- }
- }
-
- ShaderEffectSource {
- id: reflection
- sourceItem: sourceImage
- y: sourceItem.height
- width: sourceItem.width
- height: sourceItem.height
-
- transform: [
- Rotation {
- origin.x: reflection.width / 2
- origin.y: reflection.height / 2
- axis.x: 1
- axis.y: 0
- axis.z: 0
- angle: 180
- }
- ]
- }
-
- Rectangle {
- objectName: sourceImage.source.toString().slice(-20)
- x: (parent.width - sourceImage.paintedWidth) / 2// + (paintedWidthDiff > 0 ? 1.0 - paintedWidthDiff : 0)
- y: reflection.y
- width: sourceImage.paintedWidth + (index == 6 ? 2 : 1)
- height: sourceImage.paintedHeight
-
- // TODO: figure out how to get perfect x/width without using the current width hack
-// readonly property real paintedWidthDiff: sourceImage.paintedWidth - Math.floor(sourceImage.paintedWidth)
-
- gradient: Gradient {
- GradientStop {
- position: 0.0
- color: Qt.rgba(backgroundColor.r, backgroundColor.g, backgroundColor.b, 0.33)
- }
- GradientStop {
- // This determines the point at which the reflection fades out.
- position: 1.0
- color: backgroundColor
- }
- }
- }
-}
diff --git a/tests/manual/styles-cover-flow/CoverFlowPath.qml b/tests/manual/styles-cover-flow/CoverFlowPath.qml
deleted file mode 100644
index 0f70e6b8..00000000
--- a/tests/manual/styles-cover-flow/CoverFlowPath.qml
+++ /dev/null
@@ -1,157 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-
-Path {
- // Point 1
- property PathView pathView
-
- startX: 0
- startY: pathView.centerY
-
- PathAttribute {
- name: "rotateY"
- value: 50.0
- }
- PathAttribute {
- name: "scale"
- value: 0.7
- }
- PathAttribute {
- name: "zOrder"
- value: 1.0
- }
-
- // Line to point 2
- PathLine {
- x: pathView.centerX - pathView.delegateSize * 0.4
- y: pathView.centerY
- }
- PathPercent {
- value: 0.44
- }
- PathAttribute {
- name: "rotateY"
- value: 50.0
- }
- PathAttribute {
- name: "scale"
- value: 0.7
- }
- PathAttribute {
- name: "zOrder"
- value: 10.0
- }
-
- // Quad to point 3
- PathQuad {
- x: pathView.centerX
- y: pathView.centerY + pathView.delegateSize * 0.04
- controlX: pathView.centerX - pathView.delegateSize * 0.2
- controlY: pathView.centerY + pathView.delegateSize * 0.04
- }
- PathPercent {
- value: 0.5
- }
- PathAttribute {
- name: "rotateY"
- value: 0.0
- }
- PathAttribute {
- name: "scale"
- value: 1.0
- }
- PathAttribute {
- name: "zOrder"
- value: 50.0
- }
-
- // Quad to point 4
- PathQuad {
- x: pathView.centerX + pathView.delegateSize * 0.4
- y: pathView.centerY
- controlX: pathView.centerX + pathView.delegateSize * 0.2
- controlY: pathView.centerY + pathView.delegateSize * 0.04
- }
- PathPercent {
- value: 0.56
- }
- PathAttribute {
- name: "rotateY"
- value: -50.0
- }
- PathAttribute {
- name: "scale"
- value: 0.7
- }
- PathAttribute {
- name: "zOrder"
- value: 10.0
- }
-
- // Line to point 5
- PathLine {
- x: pathView.width
- y: pathView.centerY
- }
- PathAttribute {
- name: "rotateY"
- value: -50.0
- }
- PathAttribute {
- name: "scale"
- value: 0.7
- }
- PathAttribute {
- name: "zOrder"
- value: 1.0
- }
-}
diff --git a/tests/manual/styles-cover-flow/styles-cover-flow.cpp b/tests/manual/styles-cover-flow/styles-cover-flow.cpp
deleted file mode 100644
index d665d613..00000000
--- a/tests/manual/styles-cover-flow/styles-cover-flow.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QQmlContext>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.rootContext()->setContextProperty("docImagesDir", QString(DOC_IMAGES_DIR));
- engine.load(QUrl("qrc:/styles-cover-flow.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/tests/manual/styles-cover-flow/styles-cover-flow.pro b/tests/manual/styles-cover-flow/styles-cover-flow.pro
deleted file mode 100644
index 2faa9fba..00000000
--- a/tests/manual/styles-cover-flow/styles-cover-flow.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-TARGET = stylescoverflow
-QT += quick quickcontrols2
-
-SOURCES += \
- styles-cover-flow.cpp
-
-RESOURCES += \
- $$files(*.qml, true)
-
-DEFINES += DOC_IMAGES_DIR=\\\"$$PWD/../../../src/imports/controls/doc/images/\\\"
diff --git a/tests/manual/styles-cover-flow/styles-cover-flow.qml b/tests/manual/styles-cover-flow/styles-cover-flow.qml
deleted file mode 100644
index 0f400c0d..00000000
--- a/tests/manual/styles-cover-flow/styles-cover-flow.qml
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-
-Window {
- // Different delegate positions and widths and window background colors
- // can cause some unwanted "rogue pixels", so an easy way to get it perfect
- // is to mess with the width.
- width: 814
- height: 512
- visible: true
- color: backgroundColor
- flags: Qt.FramelessWindowHint
-
- readonly property color backgroundColor: "#ffffff"
-
- Shortcut {
- sequence: "Ctrl+Q"
- onActivated: Qt.quit()
- }
-
- PathView {
- id: view
- anchors.fill: parent
- anchors.leftMargin: 130
- anchors.rightMargin: 130
- model: ListModel {
- ListElement { source: "qtquickcontrols2-basic.png"; dark: false }
- ListElement { source: "qtquickcontrols2-fusion.png"; dark: false }
- ListElement { source: "qtquickcontrols2-universal-light.png"; dark: false }
- ListElement { source: "qtquickcontrols2-universal-dark.png"; dark: true }
- ListElement { source: "qtquickcontrols2-material-dark.png"; dark: true }
- ListElement { source: "qtquickcontrols2-imagine.png"; dark: false }
- ListElement { source: "qtquickcontrols2-material-light.png"; dark: false }
- }
-
- highlightRangeMode: PathView.StrictlyEnforceRange
- preferredHighlightBegin: 0.5
- preferredHighlightEnd: 0.5
- pathItemCount: 9
-
- property real centerX: width / 2
- property real centerY: height * 0.4
- property real delegateSize: 393 / 2
-
- path: CoverFlowPath {
- pathView: view
- }
- delegate: CoverFlowDelegate {}
- }
-}
diff --git a/tests/manual/styles/CMakeLists.txt b/tests/manual/styles/CMakeLists.txt
deleted file mode 100644
index b900da1b..00000000
--- a/tests/manual/styles/CMakeLists.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-# Generated from styles.pro.
-
-#####################################################################
-## styles Binary:
-#####################################################################
-
-qt_internal_add_manual_test(styles
- GUI
- SOURCES
- styles.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Quick
- Qt::QuickControls2
-)
-
-# Resources:
-set(qmake_immediate_resource_files
- "styles.qml"
-)
-
-qt_internal_add_resource(styles "qmake_immediate"
- PREFIX
- "/"
- FILES
- ${qmake_immediate_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:styles.pro:<TRUE>:
-# TEMPLATE = "app"
diff --git a/tests/manual/styles/styles.cpp b/tests/manual/styles/styles.cpp
deleted file mode 100644
index a0f0de7b..00000000
--- a/tests/manual/styles/styles.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/styles.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/tests/manual/styles/styles.pro b/tests/manual/styles/styles.pro
deleted file mode 100644
index 060ab4f7..00000000
--- a/tests/manual/styles/styles.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = app
-TARGET = styles
-QT += quick quickcontrols2
-
-SOURCES += \
- styles.cpp
-
-RESOURCES += \
- styles.qml
diff --git a/tests/manual/styles/styles.qml b/tests/manual/styles/styles.qml
deleted file mode 100644
index 83bd9b34..00000000
--- a/tests/manual/styles/styles.qml
+++ /dev/null
@@ -1,115 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Layouts
-import QtQuick.Controls
-
-ApplicationWindow {
- id: window
-
- visible: true
- minimumWidth: column.implicitWidth + 80
- minimumHeight: column.implicitHeight + 80
- title: "Qt Quick Controls 2 - Styles"
-
- // for taking frameless screenshots:
- // flags: Qt.Window | Qt.FramelessWindowHint
-
- ColumnLayout {
- id: column
-
- spacing: 20
- anchors.fill: parent
- anchors.margins: 40
-
- GroupBox {
- title: "Font Size"
- topPadding: 30
- background.visible: false
-
- ColumnLayout {
- anchors.fill: parent
- anchors.leftMargin: 20
-
- RadioButton { leftPadding: 0; text: "Small" }
- RadioButton { leftPadding: 0; text: "Medium"; checked: true }
- RadioButton { leftPadding: 0; text: "Large" }
- }
- }
-
- GroupBox {
- title: "Audio"
- topPadding: 30
- background.visible: false
-
- GridLayout {
- columns: 2
- columnSpacing: 30
- anchors.fill: parent
- anchors.leftMargin: 20
-
- Label { text: "Volume" }
- Slider { value: 1.0 }
- Label { text: "Bass" }
- Slider { value: 0.75 }
- Label { text: "Treble" }
- Slider { value: 0.5 }
- }
- }
-
- Button {
- text: "Save"
- Layout.alignment: Qt.AlignRight
- }
-
- Item { Layout.fillHeight: true }
- }
-}
diff --git a/tests/manual/systemtrayicon/CMakeLists.txt b/tests/manual/systemtrayicon/CMakeLists.txt
deleted file mode 100644
index 667fc7f7..00000000
--- a/tests/manual/systemtrayicon/CMakeLists.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-# Generated from systemtrayicon.pro.
-
-#####################################################################
-## systemtrayicon Binary:
-#####################################################################
-
-qt_internal_add_manual_test(systemtrayicon
- GUI
- SOURCES
- systemtrayicon.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Quick
- Qt::QuickControls2
-)
-
-# Resources:
-set(systemtrayicon_resource_files
- "images/qt_logo_green_256.png"
- "systemtrayicon.qml"
-)
-
-qt_internal_add_resource(systemtrayicon "systemtrayicon"
- PREFIX
- "/files"
- FILES
- ${systemtrayicon_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:systemtrayicon.pro:<TRUE>:
-# TEMPLATE = "app"
diff --git a/tests/manual/systemtrayicon/images/qt_logo_green_256.png b/tests/manual/systemtrayicon/images/qt_logo_green_256.png
deleted file mode 100644
index a7b16ba4..00000000
--- a/tests/manual/systemtrayicon/images/qt_logo_green_256.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/systemtrayicon/systemtrayicon.cpp b/tests/manual/systemtrayicon/systemtrayicon.cpp
deleted file mode 100644
index 1866a269..00000000
--- a/tests/manual/systemtrayicon/systemtrayicon.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/files/systemtrayicon.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/tests/manual/systemtrayicon/systemtrayicon.pro b/tests/manual/systemtrayicon/systemtrayicon.pro
deleted file mode 100644
index 24b9caa0..00000000
--- a/tests/manual/systemtrayicon/systemtrayicon.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = app
-TARGET = systemtrayicon
-QT += quick quickcontrols2
-
-SOURCES += \
- systemtrayicon.cpp
-
-RESOURCES += \
- systemtrayicon.qrc
diff --git a/tests/manual/systemtrayicon/systemtrayicon.qml b/tests/manual/systemtrayicon/systemtrayicon.qml
deleted file mode 100644
index d44bc83b..00000000
--- a/tests/manual/systemtrayicon/systemtrayicon.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import Qt.labs.platform
-
-ApplicationWindow {
- id: window
-
- visible: true
- title: "Qt Quick Controls 2 - System Tray Icon"
-
- MenuBar {
- id: menuBar
-
- Menu {
- id: fileMenu
- title: qsTr("File")
-
- MenuItem {
- id : quitItem
- text : "Quit"
- onTriggered: Qt.quit()
- }
- }
- }
-
- SystemTrayIcon {
- visible: true
- icon.source: "qrc:/files/images/qt_logo_green_256.png"
-
- menu: Menu {
- MenuItem {
- text: qsTr("Quit")
- onTriggered: Qt.quit()
- }
- }
-
- onActivated: console.log("Activated")
- }
-}
diff --git a/tests/manual/systemtrayicon/systemtrayicon.qrc b/tests/manual/systemtrayicon/systemtrayicon.qrc
deleted file mode 100644
index 656476d9..00000000
--- a/tests/manual/systemtrayicon/systemtrayicon.qrc
+++ /dev/null
@@ -1,6 +0,0 @@
-<RCC>
- <qresource prefix="/files">
- <file>systemtrayicon.qml</file>
- <file>images/qt_logo_green_256.png</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/testbench/+Imagine/ApplicationWindow.qml b/tests/manual/testbench/+Imagine/ApplicationWindow.qml
deleted file mode 100644
index a8e49b07..00000000
--- a/tests/manual/testbench/+Imagine/ApplicationWindow.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls.Imagine
-
-ApplicationWindow {
- Imagine.path: defaultImaginePath
-}
diff --git a/tests/manual/testbench/+Imagine/ContentPane.qml b/tests/manual/testbench/+Imagine/ContentPane.qml
deleted file mode 100644
index 3e1cad86..00000000
--- a/tests/manual/testbench/+Imagine/ContentPane.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls.Imagine
-
-Pane {
- Imagine.path: settings.useCustomImaginePath && settings.imaginePath.length > 0 ? settings.imaginePath : undefined
-}
diff --git a/tests/manual/testbench/+Imagine/Dialog.qml b/tests/manual/testbench/+Imagine/Dialog.qml
deleted file mode 100644
index 7ea9619e..00000000
--- a/tests/manual/testbench/+Imagine/Dialog.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls.Imagine
-
-Dialog {
- Imagine.path: defaultImaginePath
-}
diff --git a/tests/manual/testbench/+Imagine/Menu.qml b/tests/manual/testbench/+Imagine/Menu.qml
deleted file mode 100644
index 9587e0d4..00000000
--- a/tests/manual/testbench/+Imagine/Menu.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls.Imagine
-
-Menu {
- Imagine.path: defaultImaginePath
-}
diff --git a/tests/manual/testbench/+Imagine/ToolBar.qml b/tests/manual/testbench/+Imagine/ToolBar.qml
deleted file mode 100644
index b1b32894..00000000
--- a/tests/manual/testbench/+Imagine/ToolBar.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls.Imagine
-
-ToolBar {
- // Seems to be necessary to get the default assets to be used here,
- // though it should inherit the window's path
- Imagine.path: defaultImaginePath
-}
diff --git a/tests/manual/testbench/.gitignore b/tests/manual/testbench/.gitignore
deleted file mode 100644
index 75fae8bc..00000000
--- a/tests/manual/testbench/.gitignore
+++ /dev/null
@@ -1,83 +0,0 @@
-testbench
-*.png
-*.so
-*.so.*
-*.app
-*.exe
-*.dll
-*.dylib
-*.lib
-*.exp
-*.a
-*.la
-*.core
-*.moc
-*.o
-*.obj
-*.orig
-*.swp
-*.rej
-*.so
-*.pbxuser
-*.mode1
-*.mode1v3
-*_pch.h.cpp
-*_resource.rc
-*~
-.#*
-*.*#
-.qmake.stash
-.qmake.cache
-.qmake.vars
-*.prl
-tags
-.DS_Store
-*.debug
-Makefile*
-*.Debug
-*.Release
-*.prl
-*.pro.user
-*.qmlproject.user*
-moc_*.h
-moc_*.cpp
-ui_*.h
-qrc_*.cpp
-callgrind.out.*
-pcviewer.cfg
-*.flc
-.*.swp
-*.ib_pdb_index
-*.idb
-*.ilk
-*.pdb
-*.sln
-*.suo
-*.vcproj
-*vcproj.*.*.user
-*.ncb
-.pch
-.rcc
-.project
-.cproject
-.make.cache
-android-build
-app_process
-qtc-debugging-helper
-android-*.so-deployment-settings.json
-*.directory
-*_plugin_import.cpp
-*_wrapper.sh
-*_wrapper.bat
-*.mak
-*.xib
-*.plist
-*.pbxproj
-*_plugin_import.cpp
-*.xcsettings
-*.xcscheme
-*.xcodeproj
-qt.conf
-*.version
-*.version.in
-*.qmlc
diff --git a/tests/manual/testbench/ApplicationWindow.qml b/tests/manual/testbench/ApplicationWindow.qml
deleted file mode 100644
index 3c6785c9..00000000
--- a/tests/manual/testbench/ApplicationWindow.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls
-
-ApplicationWindow {}
diff --git a/tests/manual/testbench/CMakeLists.txt b/tests/manual/testbench/CMakeLists.txt
deleted file mode 100644
index 2fe24d60..00000000
--- a/tests/manual/testbench/CMakeLists.txt
+++ /dev/null
@@ -1,109 +0,0 @@
-# Generated from testbench.pro.
-
-#####################################################################
-## testbench Binary:
-#####################################################################
-
-qt_internal_add_manual_test(testbench
- GUI
- SOURCES
- assetfixer.cpp assetfixer.h
- clipboard.cpp clipboard.h
- directoryvalidator.cpp directoryvalidator.h
- main.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Qml
- Qt::Quick
- Qt::QuickControls2
- Qt::QuickControls2Private
-)
-
-# Resources:
-set(qml_resource_files
- "+Imagine/ApplicationWindow.qml"
- "+Imagine/ContentPane.qml"
- "+Imagine/Dialog.qml"
- "+Imagine/Menu.qml"
- "+Imagine/ToolBar.qml"
- "ApplicationWindow.qml"
- "ColorEditor.qml"
- "ContentPane.qml"
- "ControlContainer.qml"
- "Dialog.qml"
- "ExampleContainer.qml"
- "Menu.qml"
- "SettingsDialog.qml"
- "ToolBar.qml"
- "controls/BusyIndicator.qml"
- "controls/Button.qml"
- "controls/CheckBox.qml"
- "controls/CheckDelegate.qml"
- "controls/ComboBox.qml"
- "controls/DelayButton.qml"
- "controls/Dial.qml"
- "controls/Dialog.qml"
- "controls/Frame.qml"
- "controls/GroupBox.qml"
- "controls/ItemDelegate.qml"
- "controls/Label.qml"
- "controls/Menu.qml"
- "controls/MenuBar.qml"
- "controls/Page.qml"
- "controls/PageIndicator.qml"
- "controls/Pane.qml"
- "controls/ProgressBar.qml"
- "controls/RadioButton.qml"
- "controls/RadioDelegate.qml"
- "controls/RangeSlider.qml"
- "controls/RoundButton.qml"
- "controls/ScrollBar.qml"
- "controls/ScrollIndicator.qml"
- "controls/Slider.qml"
- "controls/SpinBox.qml"
- "controls/SplitView.qml"
- "controls/SwipeDelegate.qml"
- "controls/Switch.qml"
- "controls/SwitchDelegate.qml"
- "controls/TabBar.qml"
- "controls/TextArea.qml"
- "controls/TextField.qml"
- "controls/ToolBar.qml"
- "controls/ToolTip.qml"
- "controls/Tumbler.qml"
- "testbench.qml"
-)
-
-qt_internal_add_resource(testbench "qml"
- PREFIX
- "/"
- FILES
- ${qml_resource_files}
-)
-set(fonts_resource_files
- "fonts/fontawesome.ttf"
-)
-
-qt_internal_add_resource(testbench "fonts"
- PREFIX
- "/"
- FILES
- ${fonts_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:testbench.pro:<TRUE>:
-# QML_IMPORT_PATH = <EMPTY>
-# TEMPLATE = "app"
-
-## Scopes:
-#####################################################################
-
-#### Keys ignored in scope 3:.:.:deployment.pri:UNIX AND NOT ANDROID:
-# INSTALLS = "target"
-
-#### Keys ignored in scope 5:.:.:deployment.pri:QNX:
-# target.path = "/tmp/$${TARGET}/bin"
-
-#### Keys ignored in scope 6:.:.:deployment.pri:else:
-# target.path = "/opt/$${TARGET}/bin"
diff --git a/tests/manual/testbench/ColorEditor.qml b/tests/manual/testbench/ColorEditor.qml
deleted file mode 100644
index 2723f33d..00000000
--- a/tests/manual/testbench/ColorEditor.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-RowLayout {
- property alias labelText: label.text
- property string toolTipText
- property alias color: textField.text
-
- ToolTip.text: toolTipText
- ToolTip.visible: textField.hovered
-
- Layout.columnSpan: 2
-
- Label {
- id: label
-
- Layout.fillWidth: true
- }
-
- TextField {
- id: textField
-
- validator: RegularExpressionValidator{
- regularExpression: /#?[0-9a-fA-F]*/
- }
-
- Layout.preferredWidth: 200
- }
-}
diff --git a/tests/manual/testbench/ContentPane.qml b/tests/manual/testbench/ContentPane.qml
deleted file mode 100644
index 0a8c2f82..00000000
--- a/tests/manual/testbench/ContentPane.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls
-
-Pane {}
diff --git a/tests/manual/testbench/ControlContainer.qml b/tests/manual/testbench/ControlContainer.qml
deleted file mode 100644
index 4bd99bd3..00000000
--- a/tests/manual/testbench/ControlContainer.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-
-Item {
- id: container
-
- implicitWidth: delegate.implicitWidth
- implicitHeight: delegate.implicitHeight
-
- property var controlMetaObject
- property var states
-
- Loader {
- id: delegate
- sourceComponent: controlMetaObject ? controlMetaObject.component : null
-
- function is(state) {
- return container.states.indexOf(state) !== -1
- }
- }
-}
diff --git a/tests/manual/testbench/Dialog.qml b/tests/manual/testbench/Dialog.qml
deleted file mode 100644
index 32c4806a..00000000
--- a/tests/manual/testbench/Dialog.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls
-
-Dialog {}
diff --git a/tests/manual/testbench/ExampleContainer.qml b/tests/manual/testbench/ExampleContainer.qml
deleted file mode 100644
index 903e52db..00000000
--- a/tests/manual/testbench/ExampleContainer.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-Frame {
- id: container
-
- property var controlMetaObject
-
- ColumnLayout {
- id: exampleLayout
- anchors.centerIn: parent
-
- Label {
- text: !exampleLoader.active ? qsTr("Show example") : qsTr("Hide example")
-
- Layout.alignment: Qt.AlignHCenter
-
- MouseArea {
- anchors.fill: parent
- onClicked: exampleLoader.active = !exampleLoader.active
- }
- }
-
- Loader {
- id: exampleLoader
- active: false
- sourceComponent: controlMetaObject ? controlMetaObject.exampleComponent : null
-
- Layout.preferredHeight: active ? item.implicitHeight : 0
- }
- }
-}
diff --git a/tests/manual/testbench/Menu.qml b/tests/manual/testbench/Menu.qml
deleted file mode 100644
index 377cc3a0..00000000
--- a/tests/manual/testbench/Menu.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls
-
-Menu {}
diff --git a/tests/manual/testbench/README.md b/tests/manual/testbench/README.md
deleted file mode 100644
index bd434de6..00000000
--- a/tests/manual/testbench/README.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Style Testbench
-
-The Style Testbench provides a way to quickly see how controls look in different states with a given style.
-
-When run with the Imagine style, the testbench will react to changes to image assets and automatically fix and reload them.
-To use this functionality, click on the settings icon and then the settings menu item.
-From there, check "Use Custom Imagine Style Assets" and provide a path to your custom assets in the text field.
-If you want your 9-patch assets to be automatically fixed up (e.g. turn 4 pixel-thick 9-patch lines exported at
-@4x to a 1 pixel-thick line), check "Fix Imagine Style Assets".
-
-## Custom Text colors
-
-To use custom text colors, enable the "Use Custom Palette" option in the settings dialog, and then provide colors in the relevant fields. As an example, the WindowText palette role affects text that is displayed directly against the window (labels, flat button text, etc.), ButtonText affects text that is displayed against a button's background, and so on. A full list of color roles can be found here:
-
-http://doc.qt.io/qt-5/qpalette.html#ColorRole-enum
-
-The custom text color settings apply to every style that supports palettes, until turned off.
-
-The "Copy Palette Settings To Clipboard" button in the settings dialog can be used to copy the current colors and share them with others. Once someone has your custom colors, they can import them with the "Imort Palette Settings From Clipboard" button.
-
-## Tips
-
-- Ensure that 9-patch lines are black (#000000) or red (#ff0000). If these colors are slightly
- off (e.g. #010101), the assets won't display correctly when run in the application.
-- Don't use pure black in assets that have black 9-patch lines, as this will confuse the asset fixer.
-
-## Shortcuts
-
-| Name | Shortcut | Shortcut (Mac) | Description |
-|-------------------|--------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
-| Use Custom Assets | Ctrl+Shift+C | ⌘+Shift+C | If using the Imagine style, toggles between the default assets and the user's custom assets. Custom assets are specified in the settings dialog. |
-| Fix Custom Assets | Ctrl+Shift+X | ⌘+Shift+X | If using the Imagine style, manually fixes the assets. This is done automatically when "Automatically Fix Custom Assets" checkbox is checked. |
-| Reload Assets | Ctrl+R | ⌘+R | If using the Imagine style, reloads the assets from disk. This is usually done automatically. |
-| Search/Filter | Ctrl+F | ⌘+F | Filter the controls that are shown. Case-sensitive. |
-| Quit | Ctrl+Q | ⌘+Q | Quit the application. |
diff --git a/tests/manual/testbench/SettingsDialog.qml b/tests/manual/testbench/SettingsDialog.qml
deleted file mode 100644
index d11b5bea..00000000
--- a/tests/manual/testbench/SettingsDialog.qml
+++ /dev/null
@@ -1,447 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-import Backend
-import "." as Ui
-
-Ui.Dialog {
- id: settingsDialog
- title: "Settings"
- width: 500
- height: 400
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
-
- property alias imaginePathTextField: imaginePathTextField
- property alias customImagineStyleCheckBox: customImagineStyleCheckBox
- property alias autoFixImagineAssetsCheckBox: autoFixImagineAssetsCheckBox
-
- onAboutToShow: {
- styleComboBox.currentIndex = styleComboBox.styleIndex
- customImagineStyleCheckBox.checked = settings.useCustomImaginePath
- imaginePathTextField.text = settings.imaginePath
- autoFixImagineAssetsCheckBox.checked = settings.autoFixImagineAssets
-
- updatePaletteSettingsControls(paletteSettings)
- }
-
- onAccepted: {
- settings.style = styleComboBox.displayText
- settings.useCustomImaginePath = customImagineStyleCheckBox.checked
- settings.imaginePath = imaginePathTextField.text
- settings.autoFixImagineAssets = autoFixImagineAssetsCheckBox.checked
-
- paletteSettings.useCustomPalette = useCustomPaletteCheckBox.checked
- paletteSettings.window = windowColorEditor.color
- paletteSettings.windowText = windowTextColorEditor.color
- paletteSettings.base = baseColorEditor.color
- paletteSettings.text = textColorEditor.color
- paletteSettings.button = buttonColorEditor.color
- paletteSettings.buttonText = buttonTextColorEditor.color
- paletteSettings.brightText = brightTextColorEditor.color
- paletteSettings.toolTipBase = toolTipBaseColorEditor.color
- paletteSettings.toolTipText = toolTipTextColorEditor.color
- paletteSettings.light = lightColorEditor.color
- paletteSettings.midlight = midlightColorEditor.color
- paletteSettings.dark = darkColorEditor.color
- paletteSettings.mid = midColorEditor.color
- paletteSettings.shadow = shadowColorEditor.color
- paletteSettings.highlight = highlightColorEditor.color
- paletteSettings.highlightedText = highlightedTextColorEditor.color
- paletteSettings.link = linkColorEditor.color
- }
-
- function updatePaletteSettingsControls(source) {
- useCustomPaletteCheckBox.checked = paletteSettings.useCustomPalette
- windowColorEditor.color = source.window
- windowTextColorEditor.color = source.windowText
- baseColorEditor.color = source.base
- textColorEditor.color = source.text
- buttonColorEditor.color = source.button
- buttonTextColorEditor.color = source.buttonText
- brightTextColorEditor.color = source.brightText
- toolTipBaseColorEditor.color = source.toolTipBase
- toolTipTextColorEditor.color = source.toolTipText
- lightColorEditor.color = source.light
- midlightColorEditor.color = source.midlight
- darkColorEditor.color = source.dark
- midColorEditor.color = source.mid
- shadowColorEditor.color = source.shadow
- highlightColorEditor.color = source.highlight
- highlightedTextColorEditor.color = source.highlightedText
- linkColorEditor.color = source.link
- }
-
- function paletteSettingsMap() {
- var map = ({});
- map.window = windowColorEditor.color
- map.windowText = windowTextColorEditor.color
- map.base = baseColorEditor.color
- map.text = textColorEditor.color
- map.button = buttonColorEditor.color
- map.buttonText = buttonTextColorEditor.color
- map.brightText = brightTextColorEditor.color
- map.toolTipBase = toolTipBaseColorEditor.color
- map.toolTipText = toolTipTextColorEditor.color
- map.light = lightColorEditor.color
- map.midlight = midlightColorEditor.color
- map.dark = darkColorEditor.color
- map.mid = midColorEditor.color
- map.shadow = shadowColorEditor.color
- map.highlight = highlightColorEditor.color
- map.highlightedText = highlightedTextColorEditor.color
- map.link = linkColorEditor.color
- return map;
- }
-
- Clipboard {
- id: clipboard
- }
-
- DirectoryValidator {
- id: directoryValidator
- path: imaginePathTextField.text
- }
-
- contentItem: Flickable {
- contentWidth: settingsDialog.availableWidth
- contentHeight: contentLayout.implicitHeight
- flickableDirection: Qt.Vertical
- clip: true
-
- ColumnLayout {
- id: contentLayout
- anchors.fill: parent
-
- GroupBox {
- title: qsTr("General")
- Layout.fillWidth: true
-
- GridLayout {
- columns: 2
-
- Label {
- text: "Style:"
- }
-
- ComboBox {
- id: styleComboBox
- model: availableStyles
-
- property int styleIndex: -1
-
- Component.onCompleted: {
- styleIndex = find(settings.style, Qt.MatchFixedString)
- if (styleIndex !== -1)
- currentIndex = styleIndex
- }
-
- Layout.fillWidth: true
- }
-
- Item {
- Layout.fillWidth: true
- }
-
- Label {
- text: "Restart required"
- color: "#e41e25"
- opacity: styleComboBox.currentIndex !== styleComboBox.styleIndex ? 1.0 : 0.0
- Layout.topMargin: 12
- Layout.maximumHeight: styleComboBox.currentIndex !== styleComboBox.styleIndex ? implicitHeight : 0
- }
- }
- }
-
- GroupBox {
- title: qsTr("Imagine Style")
- visible: usingImagineStyle
- Layout.fillWidth: true
- Layout.columnSpan: 2
-
- GridLayout {
- columns: 2
- anchors.fill: parent
-
- CheckBox {
- id: customImagineStyleCheckBox
- text: qsTr("Use Custom Assets")
- enabled: usingImagineStyle
-
- Layout.columnSpan: 2
- }
-
- Label {
- text: "Asset Path"
- enabled: usingImagineStyle && customImagineStyleCheckBox.checked
- }
-
- TextField {
- id: imaginePathTextField
- text: settings.imaginePath
- enabled: usingImagineStyle && customImagineStyleCheckBox.checked
-
- Layout.preferredWidth: 200
- Layout.fillWidth: true
-
- ToolTip {
- text: "Path to a folder that contains Imagine style image assets"
- visible: imaginePathTextField.hovered
- delay: 500
- parent: imaginePathTextField
- }
- }
-
- Item {
- Layout.fillWidth: true
- }
-
- Label {
- text: directoryValidator.errorMessage
- color: "#e41e25"
- opacity: !directoryValidator.valid ? 1.0 : 0.0
- elide: Label.ElideMiddle
- Layout.topMargin: !directoryValidator.valid ? 12 : 0
- Layout.maximumHeight: !directoryValidator.valid ? implicitHeight : 0
-
- Layout.fillWidth: true
- }
-
- CheckBox {
- id: autoFixImagineAssetsCheckBox
- text: "Automatically Fix Custom Assets"
- enabled: usingImagineStyle && customImagineStyleCheckBox.checked
-
- Layout.columnSpan: 2
-
- ToolTip {
- text: "If set, custom Imagine style assets will be modified to be compliant whenever they have changed on disk"
- visible: autoFixImagineAssetsCheckBox.hovered
- delay: 500
- parent: imaginePathTextField
- }
- }
- }
- }
-
- GroupBox {
- title: qsTr("Palette")
- Layout.fillWidth: true
-
- GridLayout {
- columns: 2
- anchors.fill: parent
-
- CheckBox {
- id: useCustomPaletteCheckBox
- text: qsTr("Use Custom Palette")
- }
-
- ColorEditor {
- id: windowColorEditor
- labelText: qsTr("Window")
- toolTipText: qsTr("A general background color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: windowTextColorEditor
- labelText: qsTr("WindowText")
- toolTipText: qsTr("A general foreground color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: baseColorEditor
- labelText: qsTr("Base")
- toolTipText: qsTr("Used mostly as the background color for text editor controls and items views. It is usually white or another light color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: textColorEditor
- labelText: qsTr("Text")
- toolTipText: qsTr("The foreground color used with Base. This is usually the same as the WindowText, in which case it must provide good contrast with Window and Base.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: buttonColorEditor
- labelText: qsTr("Button")
- toolTipText: qsTr("The general button background color. This background can be different from Window as some styles require a different background color for buttons.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: buttonTextColorEditor
- labelText: qsTr("ButtonText")
- toolTipText: qsTr("A foreground color used with the Button color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: brightTextColorEditor
- labelText: qsTr("BrightText")
- toolTipText: qsTr("A text color that is very different from WindowText, and contrasts well with e.g. Dark. Typically used for text that needs to be drawn where Text, WindowText or ButtonText would give poor contrast, such as on highlighted buttons.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: toolTipBaseColorEditor
- labelText: qsTr("ToolTipBase")
- toolTipText: qsTr("Used as the background color for tooltips.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: toolTipTextColorEditor
- labelText: qsTr("ToolTipText")
- toolTipText: qsTr("Used as the foreground color for tooltips.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: lightColorEditor
- labelText: qsTr("Light")
- toolTipText: qsTr("Lighter than Button.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: midlightColorEditor
- labelText: qsTr("Midlight")
- toolTipText: qsTr("Between Button and Light.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: darkColorEditor
- labelText: qsTr("Dark")
- toolTipText: qsTr("Darker than Button.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: midColorEditor
- labelText: qsTr("Mid")
- toolTipText: qsTr("Between Button and Dark.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: shadowColorEditor
- labelText: qsTr("Shadow")
- toolTipText: qsTr("A very dark color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: highlightColorEditor
- labelText: qsTr("Highlight")
- toolTipText: qsTr("A color to indicate a selected item or the current item.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: linkColorEditor
- labelText: qsTr("Link")
- toolTipText: qsTr("A text color used for hyperlinks.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: highlightedTextColorEditor
- labelText: qsTr("HighlightedText")
- toolTipText: qsTr("A text color that contrasts with Highlight.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- Button {
- text: qsTr("Copy Palette Settings To Clipboard")
- enabled: useCustomPaletteCheckBox.checked
- onClicked: clipboard.copy(paletteSettingsMap())
-
- Layout.columnSpan: 2
- Layout.alignment: Qt.AlignRight
- }
-
- Button {
- text: qsTr("Import Palette Settings From Clipboard")
- enabled: useCustomPaletteCheckBox.checked
- onClicked: updatePaletteSettingsControls(clipboard.paste())
-
- Layout.columnSpan: 2
- Layout.alignment: Qt.AlignRight
- }
- }
- }
-
- Item {
- Layout.fillHeight: true
- }
- }
- }
-
- footer: DialogButtonBox {
- Button {
- text: qsTr("OK")
- DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
- enabled: !imaginePathTextField.enabled || (imaginePathTextField.enabled && directoryValidator.valid)
- }
- Button {
- text: qsTr("Cancel")
- DialogButtonBox.buttonRole: DialogButtonBox.RejectRole
- }
- }
-}
diff --git a/tests/manual/testbench/ToolBar.qml b/tests/manual/testbench/ToolBar.qml
deleted file mode 100644
index 90cbc195..00000000
--- a/tests/manual/testbench/ToolBar.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls
-
-ToolBar {}
diff --git a/tests/manual/testbench/assetfixer.cpp b/tests/manual/testbench/assetfixer.cpp
deleted file mode 100644
index 4813dac5..00000000
--- a/tests/manual/testbench/assetfixer.cpp
+++ /dev/null
@@ -1,564 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "assetfixer.h"
-
-#include <QDebug>
-#include <QDir>
-#include <QDirIterator>
-#include <QImage>
-#include <QLoggingCategory>
-#include <QQmlApplicationEngine>
-#include <QQuickWindow>
-#include <QtMath>
-
-#include "directoryvalidator.h"
-
-Q_LOGGING_CATEGORY(lcAssetFixer, "qt.quick.controls.tools.testbench.assetfixer.brief")
-Q_LOGGING_CATEGORY(lcAssetFixerVerbose, "qt.quick.controls.tools.testbench.assetfixer.verbose")
-
-static const QColor black = Qt::black;
-static const QColor red = Qt::red;
-
-/*
- This class:
-
- - Watches a given asset directory for changes. When it notices a change in the directory's
- "last modification" time, it suggests that client code call fixAssets(). It suggests
- rather than just doing it itself because the client code (QML) may want to wait a second
- or two to see if more changes are coming before doing an expensive fixup, as exporting
- a bunch of files into a directory will cause several directoryChanged() emissions from
- QFileSystemWatcher.
- - Fixes 9-patch image assets via the function below.
-*/
-
-/*
- This function:
-
- - Crops the image to the area within the 9-patch lines if necessary.
- This can happen if e.g. a shadow is applied to an asset in Illustrator
- and it causes the image to be larger than necessary.
- - Reduces the thickness of the 9-patch lines. This is necessary to enable
- designers not to have to worry about creating one pixel-thick lines for
- each DPI variant of an asset; they can simply export the asset at each
- DPI variant as usual and this program will fix it for them.
-
- See README.md for more information.
-*/
-bool cropImageToLines(QImage *image)
-{
- QRect cropArea;
- /*
- We need to keep track of this because of the following case:
-
- ______________________
- ______________________
- ||
- oooooooooooooooooooooooo
- ||
-
- If we didn't keep track of thickness, the top edge's lines would be found fine,
- but then we'd look at the bottom edge and we'd accidentally pick up the left edge's lines.
- Keeping track of thickness ensures that we have some way of knowing if we're far enough
- in for the line to belong to a certain edge.
-
- Note that this approach is still limited, as it doesn't account for the top edge,
- but we have to start somewhere in order to find the thickness.
- */
- int thickness = 0;
-
- bool cropTop = false;
- bool foundOnePixelThick9PatchLine = false;
- // We have to go row by row because otherwise we might find a pixel that
- // belongs to e.g. the left edge.
- for (int y = 0; y < qFloor(image->height() / 2.0) && !cropTop && !foundOnePixelThick9PatchLine; ++y) {
- for (int x = 1; x < image->width() - 2 && !cropTop && !foundOnePixelThick9PatchLine; ++x) {
- const QColor pixelColor = image->pixelColor(x, y);
- if (pixelColor == black || pixelColor == red) {
- if (y == 0) {
- const QColor pixelColorBelow = image->pixelColor(x, y + 1);
- if (pixelColorBelow != black && pixelColorBelow != red) {
- // We've already found the top of the 9-patch line, and the row below it
- // is a different color, so we know that it's one pixel thick, and that we're done.
- // Note that we can't just assume all of the other edges are the same and return here,
- // as we also need to account for e.g. shadows.
- qCDebug(lcAssetFixerVerbose) << "found one-pixel-thick nine patch line on top edge at x" << x;
- foundOnePixelThick9PatchLine = true;
- thickness = 1;
- }
- } else {
- // It's not already at the top edge, so crop the top edge.
- cropTop = true;
-
- // Now that we've found the line, find out how thick it is.
- for (int yy = y; yy < qFloor(image->height() / 2.0); ++yy) {
- const QColor pixelColor = image->pixelColor(x, yy);
- if (pixelColor == black || pixelColor == red) {
- cropArea.setTop(yy);
- } else {
- break;
- }
- }
-
- // + 1 for the pixel that we leave in when cropping,
- // another +1 for the fact that this else statement is only entered when y > 0
- if (thickness == 0) {
- thickness = cropArea.top() - y + 2;
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on top edge at x" << x << "y" << y
- << "with thickness" << thickness;
- } else {
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on top edge at x" << x << "y" << y
- << "using existing thickness of" << thickness;
- }
- }
- }
- }
- }
-
- bool cropBottom = false;
- foundOnePixelThick9PatchLine = false;
- for (int y = image->height() - 1; y >= qCeil(image->height() / 2.0) && !cropBottom && !foundOnePixelThick9PatchLine; --y) {
- for (int x = qMax(1, thickness); x < image->width() - 2 && !cropBottom && !foundOnePixelThick9PatchLine; ++x) {
- const QColor pixelColor = image->pixelColor(x, y);
- if (pixelColor == black || pixelColor == red) {
- if (y == image->height() - 1) {
- const QColor pixelColorAbove = image->pixelColor(x, y - 1);
- if (pixelColorAbove != black && pixelColorAbove != red) {
- // We've already found the bottom of the 9-patch line, and the row above it
- // is a different color, so we know that it's one pixel thick, and that we're done.
- qCDebug(lcAssetFixerVerbose) << "found one-pixel-thick nine patch line on bottom edge at x" << x;
- foundOnePixelThick9PatchLine = true;
- if (thickness == 0)
- thickness = 1;
- }
- } else {
- // It's not already at the bottom edge, so crop the bottom edge.
- cropBottom = true;
-
- // Now that we've found the line, find out how thick it is.
- for (int yy = y; yy >= qCeil(image->height() / 2.0); --yy) {
- const QColor pixelColor = image->pixelColor(x, yy);
- if (pixelColor == black || pixelColor == red) {
- cropArea.setBottom(yy);
- } else {
- break;
- }
- }
-
- // + 1 for the pixel that we leave in when cropping,
- // another +1 for the fact that this else statement is only entered when y < image->height() - 1
- if (thickness == 0) {
- thickness = y - cropArea.bottom() + 2;
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on bottom edge at x" << x << "y" << y
- << "with thickness" << thickness;
- } else {
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on bottom edge at x" << x << "y" << y
- << "using existing thickness of" << thickness;
- }
- }
- break;
- }
- }
- }
-
- bool cropLeft = false;
- foundOnePixelThick9PatchLine = false;
- for (int x = 0; x < qFloor(image->width() / 2.0) && !cropLeft && !foundOnePixelThick9PatchLine; ++x) {
- for (int y = qMax(1, thickness); y < image->height() - 2 && !cropLeft && !foundOnePixelThick9PatchLine; ++y) {
- const QColor pixelColor = image->pixelColor(x, y);
- if (pixelColor == black || pixelColor == red) {
- if (x == 0) {
- const QColor pixelColorToTheRight = image->pixelColor(x + 1, y);
- if (pixelColorToTheRight != black && pixelColorToTheRight != red) {
- // We've already found the beginning of the 9-patch line, and the column after it
- // is a different color, so we know that it's one pixel thick, and that we're done.
- qCDebug(lcAssetFixerVerbose) << "found one-pixel-thick nine patch line on left edge at y" << y;
- foundOnePixelThick9PatchLine = true;
- }
- } else {
- // It's not already at the left edge, so crop the left edge.
- cropLeft = true;
-
- // Now that we've found the line, find out how thick it is.
- for (int xx = x; xx < qFloor(image->width() / 2.0); ++xx) {
- const QColor pixelColor = image->pixelColor(xx, y);
- if (pixelColor == black || pixelColor == red) {
- cropArea.setLeft(xx);
- } else {
- break;
- }
- }
-
- // + 1 for the pixel that we leave in when cropping,
- // another +1 for the fact that this else statement is only entered when x > 0
- if (thickness == 0) {
- thickness = cropArea.left() - x + 2;
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on left edge at x" << x << "y" << y
- << "with thickness" << thickness;
- } else {
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on left edge at x" << x << "y" << y
- << "using existing thickness of" << thickness;
- }
- }
- }
- }
- }
-
- bool cropRight = false;
- foundOnePixelThick9PatchLine = false;
- for (int x = image->width() - 1; x >= qCeil(image->width() / 2.0) && !cropRight && !foundOnePixelThick9PatchLine; --x) {
- for (int y = qMax(1, thickness); y < image->height() - 2 && !cropRight && !foundOnePixelThick9PatchLine; ++y) {
- const QColor pixelColor = image->pixelColor(x, y);
- if (pixelColor == black || pixelColor == red) {
- if (x == image->width() - 1) {
- const QColor pixelColorToTheLeft = image->pixelColor(x - 1, y);
- if (pixelColorToTheLeft != black && pixelColorToTheLeft != red) {
- // We've already found the end of the 9-patch line, and the column before it
- // is a different color, so we know that it's one pixel thick, and that we're done.
- qCDebug(lcAssetFixerVerbose) << "found one-pixel-thick nine patch line on right edge at y" << y;
- foundOnePixelThick9PatchLine = true;
- }
- } else {
- // It's not already at the right edge, so crop the right edge.
- cropRight = true;
-
- // Now that we've found the line, find out how thick it is.
- for (int xx = x; xx >= qCeil(image->width() / 2.0); --xx) {
- const QColor pixelColor = image->pixelColor(xx, y);
- if (pixelColor == black || pixelColor == red) {
- cropArea.setRight(xx);
- } else {
- break;
- }
- }
-
- // + 1 for the pixel that we leave in when cropping,
- // another +1 for the fact that this else statement is only entered when x < image->width() - 1
- if (thickness == 0) {
- thickness = x - cropArea.right() + 2;
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on right edge at x" << x << "y" << y
- << "with thickness" << thickness;
- } else {
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on right edge at x" << x << "y" << y
- << "using existing thickness of" << thickness;
- }
- }
- break;
- }
- }
- }
-
- const QRect copyArea(cropLeft ? cropArea.x() : (thickness ? thickness - 1 : 0),
- cropTop ? cropArea.y() : (thickness ? thickness - 1 : 0),
- cropRight ? cropArea.width() : image->width() - (thickness ? (thickness - 1) * 2 : 0),
- cropBottom ? cropArea.height() : image->height() - (thickness ? (thickness - 1) * 2 : 0));
-
- if (cropLeft | cropRight | cropTop | cropBottom) {
- qCDebug(lcAssetFixerVerbose) << "cropping area" << copyArea;
- *image = image->copy(copyArea);
- return true;
- }
-
- return false;
-}
-
-AssetFixer::AssetFixer(QObject *parent) :
- QObject(parent),
- mComponentComplete(false),
- mFirstWatch(true),
- mShouldWatch(false),
- mShouldFix(false),
- mLastModified(QDateTime::fromSecsSinceEpoch(0))
-{
-}
-
-bool AssetFixer::shouldWatch() const
-{
- return mShouldWatch;
-}
-
-void AssetFixer::setShouldWatch(bool watch)
-{
- if (watch == mShouldWatch)
- return;
-
- stopWatching();
-
- mShouldWatch = watch;
-
- startWatching();
-
- emit shouldWatchChanged();
-}
-
-bool AssetFixer::shouldFix() const
-{
- return mShouldFix;
-}
-
-void AssetFixer::setShouldFix(bool fix)
-{
- if (fix == mShouldFix)
- return;
-
- mShouldFix = fix;
- emit shouldFixChanged();
-}
-
-QString AssetFixer::assetDirectory() const
-{
- return mAssetDirectory;
-}
-
-void AssetFixer::setAssetDirectory(const QString &assetDirectory)
-{
- if (assetDirectory == mAssetDirectory)
- return;
-
- stopWatching();
-
- const QString oldAssetDirectory = assetDirectory;
- mAssetDirectory.clear();
-
- if (isAssetDirectoryValid(assetDirectory)) {
- mAssetDirectory = assetDirectory;
- startWatching();
- }
-
- if (mAssetDirectory != oldAssetDirectory)
- emit assetDirectoryChanged();
-}
-
-QUrl AssetFixer::assetDirectoryUrl() const
-{
- return QUrl::fromLocalFile(mAssetDirectory);
-}
-
-QDateTime AssetFixer::assetDirectoryLastModified() const
-{
- return mLastModified;
-}
-
-void AssetFixer::setAssetDirectoryLastModified(const QDateTime &assetDirectoryLastModified)
-{
- if (assetDirectoryLastModified == mLastModified)
- return;
-
- mLastModified = assetDirectoryLastModified;
- emit assetDirectoryLastModifiedChanged();
-}
-
-void AssetFixer::componentComplete()
-{
- mComponentComplete = true;
-}
-
-void AssetFixer::classBegin()
-{
-}
-
-void AssetFixer::onAssetsChanged()
-{
- const QFileInfo fileInfo(mAssetDirectory);
- const QDateTime lastModified = fileInfo.lastModified();
-
- qCDebug(lcAssetFixer) << "Change in asset directory" << mAssetDirectory << "detected"
- << "lastModified:" << lastModified;
- const qint64 secsSinceLastModification = mLastModified.secsTo(lastModified);
- if (secsSinceLastModification == 0) {
- qCDebug(lcAssetFixer) << "Change in asset directory" << mAssetDirectory << "detected, "
- << "but QFileInfo says the directory hasn't been modified; ignoring";
- } else {
- setAssetDirectoryLastModified(lastModified);
-
- QString message;
- if (lcAssetFixer().isDebugEnabled()) {
- message = QString::fromLatin1("Change in asset directory %1 detected, and QFileInfo says that there have been " \
- "%2 seconds since it was previously last modified); %3").arg(mAssetDirectory).arg(secsSinceLastModification);
- }
-
- if (shouldFix()) {
- qCDebug(lcAssetFixer) << message.arg(QLatin1String("suggesting delayed fix"));
- emit delayedFixSuggested();
- } else {
- qCDebug(lcAssetFixer) << message.arg(QLatin1String("suggesting reload"));
- emit reloadSuggested();
- }
- }
-}
-
-void AssetFixer::stopWatching()
-{
- if (!mShouldWatch || mAssetDirectory.isEmpty() || !mComponentComplete)
- return;
-
- disconnect(&mFileSystemWatcher, &QFileSystemWatcher::directoryChanged, this, &AssetFixer::onAssetsChanged);
- mFileSystemWatcher.removePath(mAssetDirectory);
-}
-
-void AssetFixer::startWatching()
-{
- if (!mShouldWatch || mAssetDirectory.isEmpty() || !mComponentComplete || !isAssetDirectoryValid(mAssetDirectory))
- return;
-
- if (mFileSystemWatcher.addPath(mAssetDirectory)) {
- // TODO: for some reason this is not called when an image is edited, but is when the same image is "touch"ed.
- // We could add watchers for each file, but then the application might have to be limited to displaying
- // the elements for one control at a time so that we don't breach the 256 file descriptor limit on some platforms:
- // http://doc.qt.io/qt-5/qfilesystemwatcher.html#details
-
- // We only emit a signal here rather than automatically responding to it ourselves,
- // because we want to give the UI time to start animations.
- connect(&mFileSystemWatcher, &QFileSystemWatcher::directoryChanged, this, &AssetFixer::onAssetsChanged);
-
- const QFileInfo fileInfo(mAssetDirectory);
- bool suggestFix = false;
- if (mFirstWatch) {
- mFirstWatch = false;
-
- // Here we check if the assets have been modified since the last time the application closed.
- // Checking this avoids a slow startup (due to fixing up assets).
- if (fileInfo.lastModified() > mLastModified) {
- qCDebug(lcAssetFixer) << "asset directory" << mAssetDirectory << "was modified at"
- << fileInfo.lastModified() << ", which is later than our last stored modification time of"
- << mLastModified << "; suggesting fix";
- suggestFix = true;
- } else {
- qCDebug(lcAssetFixer) << "asset directory" << mAssetDirectory << "has not been modified since"
- << "the application was last closed; a fix is not necessary";
-
- // For some reason not all assets are updated if we don't do this.
- emit reloadSuggested();
- }
-
- // Don't need to call setAssetDirectoryLastModified() here, as we should have gotten it from settings.
- } else {
- suggestFix = true;
- }
-
- if (suggestFix) {
- setAssetDirectoryLastModified(fileInfo.lastModified());
- emit fixSuggested();
- }
- } else {
- qWarning() << "Could not watch asset directory" << mAssetDirectory;
- }
-}
-
-bool AssetFixer::isAssetDirectoryValid(const QString &assetDirectory)
-{
- DirectoryValidator validator;
- validator.setPath(assetDirectory);
- return validator.isValid();
-}
-
-void AssetFixer::clearImageCache()
-{
- QQmlApplicationEngine *engine = qobject_cast<QQmlApplicationEngine*>(qmlEngine(this));
- if (!engine) {
- qWarning() << "No QQmlApplicationEngine for AssetFixer - assets may not reload properly";
- return;
- }
-
- QQuickWindow *window = qobject_cast<QQuickWindow*>(engine->rootObjects().first());
- if (!window) {
- qWarning() << "No QQuickWindow - assets may not reload properly";
- return;
- }
-
- // We can't seem to disable image caching on a per-Image basis (by the time the QQuickImages
- // are available, the cache has already been filled), so we call this instead.
- qCDebug(lcAssetFixer) << "Calling QQuickWindow::releaseResources() to clear pixmap cache";
- window->releaseResources();
-}
-
-void AssetFixer::fixAssets()
-{
- if (!mShouldFix || !mComponentComplete || mAssetDirectory.isEmpty() || !isAssetDirectoryValid(mAssetDirectory))
- return;
-
- QDir assetDir(mAssetDirectory);
- qCDebug(lcAssetFixer) << "Fixing up assets in" << assetDir.absolutePath() << "...";
- int filesChanged = 0;
-
- QStringList nameFilters;
- nameFilters << QLatin1String("*.9.png");
- QDirIterator dirIt(assetDir.absolutePath(), nameFilters, QDir::Files | QDir::Readable | QDir::NoSymLinks);
- while (dirIt.hasNext()) {
- const QString imagePath = dirIt.next();
-
- QImage image(imagePath);
- if (image.isNull()) {
- qWarning() << "Couldn't open image at" << imagePath;
- return;
- }
-
- qCDebug(lcAssetFixerVerbose).nospace() << "found " << imagePath << " (" << image.width() << "x" << image.height() << ") - "
- << "checking if we need to crop 9-patch lines";
-
- if (cropImageToLines(&image)) {
- if (!image.save(imagePath)) {
- qWarning() << "Couldn't save" << imagePath;
- return;
- }
-
- ++filesChanged;
- }
- }
-
- qCDebug(lcAssetFixer) << "Fixed" << filesChanged << "assets";
-
- // Let the application know that it should reload the Imagine style's assets.
- // Currently we always suggest a reload after fixing files, even if no files were fixed.
- // This is because the default Imagine style assets are automatically loaded at first, and then we
- // set a custom path shortly after, so we must ensure that the Imagine style is using the correct assets.
- // Reloads are just a matter of changing Imagine.path, which is very fast.
- emit reloadSuggested();
-}
diff --git a/tests/manual/testbench/assetfixer.h b/tests/manual/testbench/assetfixer.h
deleted file mode 100644
index 4af9ccf4..00000000
--- a/tests/manual/testbench/assetfixer.h
+++ /dev/null
@@ -1,126 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef ASSETFIXER_H
-#define ASSETFIXER_H
-
-#include <QObject>
-#include <QDateTime>
-#include <QFileSystemWatcher>
-#include <QQmlParserStatus>
-#include <QUrl>
-
-class AssetFixer : public QObject, public QQmlParserStatus
-{
- Q_OBJECT
- Q_PROPERTY(bool shouldWatch READ shouldWatch WRITE setShouldWatch NOTIFY shouldWatchChanged FINAL)
- Q_PROPERTY(bool shouldFix READ shouldFix WRITE setShouldFix NOTIFY shouldFixChanged FINAL)
- Q_PROPERTY(QString assetDirectory READ assetDirectory WRITE setAssetDirectory NOTIFY assetDirectoryChanged FINAL)
- Q_PROPERTY(QUrl assetDirectoryUrl READ assetDirectoryUrl NOTIFY assetDirectoryChanged FINAL)
- Q_PROPERTY(QDateTime assetDirectoryLastModified READ assetDirectoryLastModified WRITE setAssetDirectoryLastModified
- NOTIFY assetDirectoryLastModifiedChanged FINAL)
- Q_INTERFACES(QQmlParserStatus)
-
-public:
- explicit AssetFixer(QObject *parent = nullptr);
-
- bool shouldWatch() const;
- void setShouldWatch(bool shouldWatch);
-
- bool shouldFix() const;
- void setShouldFix(bool shouldFix);
-
- QString assetDirectory() const;
- void setAssetDirectory(const QString &assetDirectory);
-
- QUrl assetDirectoryUrl() const;
-
- QDateTime assetDirectoryLastModified() const;
- void setAssetDirectoryLastModified(const QDateTime &assetDirectoryLastModified);
-
-signals:
- void shouldWatchChanged();
- void shouldFixChanged();
- void assetDirectoryChanged();
- void assetDirectoryLastModifiedChanged();
-
- void fixSuggested();
- void delayedFixSuggested();
- void reloadSuggested();
-
- void error(const QString &errorMessage);
-
-public slots:
- void clearImageCache();
- void fixAssets();
-
-protected:
- void componentComplete() override;
- void classBegin() override;
-
-private slots:
- void onAssetsChanged();
-
-private:
- void stopWatching();
- void startWatching();
-
- bool isAssetDirectoryValid(const QString &assetDirectory);
-
- bool mComponentComplete;
- bool mFirstWatch;
- bool mShouldWatch;
- bool mShouldFix;
- QString mAssetDirectory;
- QFileSystemWatcher mFileSystemWatcher;
- QDateTime mLastModified;
-};
-
-#endif // ASSETFIXER_H
diff --git a/tests/manual/testbench/clipboard.cpp b/tests/manual/testbench/clipboard.cpp
deleted file mode 100644
index 1daebfc9..00000000
--- a/tests/manual/testbench/clipboard.cpp
+++ /dev/null
@@ -1,124 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "clipboard.h"
-
-#include <QClipboard>
-#include <QGuiApplication>
-#include <QSettings>
-
-const QStringList keys = {
- "Palette/window",
- "Palette/windowText",
- "Palette/base",
- "Palette/text",
- "Palette/button",
- "Palette/buttonText",
- "Palette/brightText",
- "Palette/toolTipBase",
- "Palette/toolTipText",
- "Palette/light",
- "Palette/midlight",
- "Palette/dark",
- "Palette/mid",
- "Palette/shadow",
- "Palette/highlight",
- "Palette/highlightedText",
- "Palette/link"
-};
-
-Clipboard::Clipboard(QObject *parent) :
- QObject(parent)
-{
-}
-
-// Converts the JS map into a big string and copies it to the clipboard.
-void Clipboard::copy(const QJSValue &keyValueMap)
-{
- QString paletteSettingsString;
- QVariantMap map = keyValueMap.toVariant().value<QVariantMap>();
- const QList<QString> mapKeys = map.keys();
- for (const QString &key : mapKeys) {
- paletteSettingsString += "Palette/" + key + "=" + map.value(key).toString() + ",";
- }
-
- // Remove the trailing comma.
- if (!paletteSettingsString.isEmpty())
- paletteSettingsString.chop(1);
-
- QGuiApplication::clipboard()->setText(paletteSettingsString);
-}
-
-// Converts the big string into a JS map and returns it.
-QVariant Clipboard::paste() const
-{
- QClipboard *clipboard = QGuiApplication::clipboard();
- if (clipboard->text().isEmpty())
- return QVariant();
-
- QVariantMap keyValueMap;
-
- const QStringList settingsList = clipboard->text().split(QLatin1Char(','));
- for (const QString &setting : settingsList) {
- const QStringList keyValuePair = setting.split(QLatin1Char('='));
- if (keyValuePair.size() < 2)
- continue;
-
- QString key = keyValuePair.first();
- if (keys.contains(key)) {
- key.remove(QLatin1String("Palette/"));
- const QString value = keyValuePair.last();
-
- keyValueMap.insert(key, value);
- }
- }
-
- return QVariant(keyValueMap);
-}
diff --git a/tests/manual/testbench/clipboard.h b/tests/manual/testbench/clipboard.h
deleted file mode 100644
index a21dd9c6..00000000
--- a/tests/manual/testbench/clipboard.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef CLIPBOARD_H
-#define CLIPBOARD_H
-
-#include <QObject>
-#include <QJSValue>
-#include <QVariant>
-
-class Clipboard : public QObject
-{
- Q_OBJECT
-public:
- explicit Clipboard(QObject *parent = nullptr);
-
-public slots:
- void copy(const QJSValue &keyValueMap);
- QVariant paste() const;
-
-// void copyPaletteSettingsToClipboard();
-// void importPaletteSettingsFromClipboard();
-};
-
-#endif // CLIPBOARD_H
diff --git a/tests/manual/testbench/controls/BusyIndicator.qml b/tests/manual/testbench/controls/BusyIndicator.qml
deleted file mode 100644
index cc0f4518..00000000
--- a/tests/manual/testbench/controls/BusyIndicator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["mirrored"]
- ]
-
- property Component component: BusyIndicator {
- enabled: !is("disabled")
- LayoutMirroring.enabled: is("mirrored")
- }
-}
diff --git a/tests/manual/testbench/controls/Button.qml b/tests/manual/testbench/controls/Button.qml
deleted file mode 100644
index ac57453f..00000000
--- a/tests/manual/testbench/controls/Button.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked"],
- ["highlighted"],
- ["highlighted", "disabled"],
- ["highlighted", "pressed"],
- ["highlighted", "checked"],
- ["highlighted", "checkable", "pressed"],
- ["highlighted", "checkable", "checked"],
- ["flat"],
- ["flat", "disabled"],
- ["flat", "pressed"],
- ["flat", "checked"],
- ["flat", "checkable"],
- ["flat", "checkable", "pressed"],
- ["flat", "checkable", "checked", "pressed"],
- ["flat", "checkable", "highlighted"],
- ["flat", "checkable", "highlighted", "pressed"],
- ["flat", "checkable", "highlighted", "checked"]
- ]
-
- property Component component: Button {
- text: "Button"
- enabled: !is("disabled")
- flat: is("flat")
- checkable: is("checkable")
- checked: is("checked")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- }
-}
diff --git a/tests/manual/testbench/controls/CheckBox.qml b/tests/manual/testbench/controls/CheckBox.qml
deleted file mode 100644
index 0598dae8..00000000
--- a/tests/manual/testbench/controls/CheckBox.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "pressed"],
- ["partially-checked"],
- ["partially-checked", "disabled"],
- ["partially-checked", "pressed"],
- ]
-
- property Component component: CheckBox {
- text: "CheckBox"
- enabled: !is("disabled")
- checkState: is("checked") ? Qt.Checked : is("partially-checked") ? Qt.PartiallyChecked : Qt.Unchecked
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- }
-}
diff --git a/tests/manual/testbench/controls/CheckDelegate.qml b/tests/manual/testbench/controls/CheckDelegate.qml
deleted file mode 100644
index 8f546384..00000000
--- a/tests/manual/testbench/controls/CheckDelegate.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "pressed"],
- ["partially-checked"],
- ["partially-checked", "disabled"],
- ["partially-checked", "pressed"],
- ]
-
- property Component component: CheckDelegate {
- text: "CheckDelegate"
- enabled: !is("disabled")
- checkState: is("checked") ? Qt.Checked : is("partially-checked") ? Qt.PartiallyChecked : Qt.Unchecked
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- focusPolicy: Qt.StrongFocus
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: CheckDelegate {
- width: parent.width
- text: "CheckDelegate"
- focusPolicy: Qt.StrongFocus
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ComboBox.qml b/tests/manual/testbench/controls/ComboBox.qml
deleted file mode 100644
index 75fb7701..00000000
--- a/tests/manual/testbench/controls/ComboBox.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["open"],
- ["editable"],
- ["editable", "disabled"]
- ]
-
- property Component component: ComboBox {
- enabled: !is("disabled")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- editable: is("editable")
- model: ["ComboBox", "Apple", "Bird", "Cat", "Dog", "Elephant"]
- }
-}
diff --git a/tests/manual/testbench/controls/DelayButton.qml b/tests/manual/testbench/controls/DelayButton.qml
deleted file mode 100644
index c0f6faa2..00000000
--- a/tests/manual/testbench/controls/DelayButton.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["disabled", "checked"],
- ["pressed"],
- ["checked"],
- ]
-
- property Component component: Component {
- DelayButton {
- text: "DelayButton"
-// enabled: !is("disabled")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
-// down: is("pressed") ? true : undefined
- onDownChanged: print("down", down)
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Dial.qml b/tests/manual/testbench/controls/Dial.qml
deleted file mode 100644
index 16c99ec8..00000000
--- a/tests/manual/testbench/controls/Dial.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- // TODO: no down property to test this with
-// ["pressed"]
- ]
-
- property Component component: Dial {
- enabled: !is("disabled")
- }
-}
diff --git a/tests/manual/testbench/controls/Dialog.qml b/tests/manual/testbench/controls/Dialog.qml
deleted file mode 100644
index 0ea9d3be..00000000
--- a/tests/manual/testbench/controls/Dialog.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-// TODO
-QtObject {
- property string customControlName: qsTr("Dialog")
-
- property var supportedStates: [
- [],
- ["modal"],
- ["dim"]
- ]
-
- property Component component: Button {
- id: dialogButton
- text: qsTr("Dialog")
- hoverEnabled: true
-
- onClicked: dialog.open()
-
- Dialog {
- id: dialog
- x: (window.width - width) / 2
- y: (window.height - height) / 2
- standardButtons: Dialog.Ok | Dialog.Cancel
- parent: window.contentItem
- modal: is("modal")
- dim: is("dim") || is("modal")
-
- Label {
- text: "Lorem ipsum dolor sit amet, \nconsectetuer adipiscing elit, \n"
- + "sed diam nonummy nibh euismod tincidunt ut \nlaoreet dolore magna aliquam erat volutpat."
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Frame.qml b/tests/manual/testbench/controls/Frame.qml
deleted file mode 100644
index dd88c3b8..00000000
--- a/tests/manual/testbench/controls/Frame.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ]
-
- property Component component: Frame {
- Label {
- text: "Frame"
- }
- }
-}
diff --git a/tests/manual/testbench/controls/GroupBox.qml b/tests/manual/testbench/controls/GroupBox.qml
deleted file mode 100644
index 80ced769..00000000
--- a/tests/manual/testbench/controls/GroupBox.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ]
-
- property Component component: GroupBox {
- title: qsTr("Title")
-
- Label {
- text: qsTr("GroupBox")
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ItemDelegate.qml b/tests/manual/testbench/controls/ItemDelegate.qml
deleted file mode 100644
index 0b887e2f..00000000
--- a/tests/manual/testbench/controls/ItemDelegate.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["highlighted"],
- ["highlighted", "pressed"]
- ]
-
- property Component component: ItemDelegate {
- text: "ItemDelegate"
- enabled: !is("disabled")
- checkable: is("checkable")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- focusPolicy: Qt.StrongFocus
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: ItemDelegate {
- width: parent.width
- text: "ItemDelegate"
- focusPolicy: Qt.StrongFocus
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Label.qml b/tests/manual/testbench/controls/Label.qml
deleted file mode 100644
index d8155a20..00000000
--- a/tests/manual/testbench/controls/Label.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"]
- ]
-
- property Component component: Label {
- text: "Label with a <a href=\"http://doc.qt.io\">link</a>"
- onTextChanged: print(text)
- enabled: !is("disabled")
- textFormat: Label.StyledText
- }
-}
diff --git a/tests/manual/testbench/controls/Menu.qml b/tests/manual/testbench/controls/Menu.qml
deleted file mode 100644
index ba15c052..00000000
--- a/tests/manual/testbench/controls/Menu.qml
+++ /dev/null
@@ -1,121 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-// TODO
-QtObject {
- property string customControlName: qsTr("Menu, MenuItem & MenuSeparator")
-
- property var supportedStates: [
- []
- ]
-
- property Component component: Button {
- id: menuButton
- text: qsTr("Menu")
- checked: menu.visible
- checkable: true
-
- Menu {
- id: menu
- x: 1
- y: 1 + parent.height
- visible: menuButton.checked
- closePolicy: Popup.CloseOnPressOutsideParent
-
- MenuItem {
- text: "Normal"
- }
- MenuItem {
- text: "Pressed"
- down: true
- }
- MenuItem {
- text: "Disabled"
- enabled: false
- }
-
- MenuSeparator {}
-
- MenuItem {
- text: "Checked"
- checked: true
- }
- MenuItem {
- text: "Checked + Pressed"
- checked: true
- down: true
- }
- MenuItem {
- text: "Checked + Disabled"
- checked: true
- enabled: false
- }
-
- MenuSeparator {}
-
- Menu {
- title: "Submenu"
-
- MenuItem {
- text: "Submenu item"
- }
- }
-
- Menu {
- title: "Disabled Submenu"
- enabled: false
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/MenuBar.qml b/tests/manual/testbench/controls/MenuBar.qml
deleted file mode 100644
index f435c9a5..00000000
--- a/tests/manual/testbench/controls/MenuBar.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-// TODO
-QtObject {
- property string customControlName: qsTr("MenuBar & MenuBarItem")
-
- property var supportedStates: [
- []
- ]
-
- property Component component: MenuBar {
- MenuBarItem {
- text: qsTr("Normal")
- }
- MenuBarItem {
- text: qsTr("Pressed")
- down: true
- }
- MenuBarItem {
- text: qsTr("Highlighted")
- highlighted: true
- }
- MenuBarItem {
- text: qsTr("Disabled")
- enabled: false
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Page.qml b/tests/manual/testbench/controls/Page.qml
deleted file mode 100644
index 3d310676..00000000
--- a/tests/manual/testbench/controls/Page.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ]
-
- property Component component: Page {
- width: 100
- height: 100
-
- Label {
- text: "Page"
- anchors.centerIn: parent
- }
- }
-}
diff --git a/tests/manual/testbench/controls/PageIndicator.qml b/tests/manual/testbench/controls/PageIndicator.qml
deleted file mode 100644
index 5de29ef1..00000000
--- a/tests/manual/testbench/controls/PageIndicator.qml
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- // TODO: no down property to test this with
-// ["pressed"]
- ]
-
- property Component component: PageIndicator {
- enabled: !is("disabled")
- count: 5
- }
-
- property Component exampleComponent: ColumnLayout {
- implicitWidth: 200
- implicitHeight: 200
-
- // TODO: why doesn't this fill the ColumnLayout? :/
- StackLayout {
- id: swipeView
- currentIndex: pageIndicator.currentIndex
-
- Label {
- text: qsTr("Page 1")
- horizontalAlignment: Label.AlignHCenter
- }
-
- Label {
- text: qsTr("Page 2")
- horizontalAlignment: Label.AlignHCenter
- }
-
- Label {
- text: qsTr("Page 3")
- horizontalAlignment: Label.AlignHCenter
- }
-
- Label {
- text: qsTr("Page 4")
- horizontalAlignment: Label.AlignHCenter
- }
-
- Label {
- text: qsTr("Page 5")
- horizontalAlignment: Label.AlignHCenter
- }
- }
-
- PageIndicator {
- id: pageIndicator
- currentIndex: swipeView.currentIndex
- count: swipeView.count
- interactive: true
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Pane.qml b/tests/manual/testbench/controls/Pane.qml
deleted file mode 100644
index b5329b71..00000000
--- a/tests/manual/testbench/controls/Pane.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ]
-
- property Component component: Pane {
- width: 100
- height: 100
-
- Label {
- text: "Pane"
- anchors.centerIn: parent
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ProgressBar.qml b/tests/manual/testbench/controls/ProgressBar.qml
deleted file mode 100644
index bc2d9045..00000000
--- a/tests/manual/testbench/controls/ProgressBar.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["indeterminate"]
- ]
-
- property Component component: ProgressBar {
- enabled: !is("disabled")
- indeterminate: is("indeterminate")
- value: 0.25
- }
-}
diff --git a/tests/manual/testbench/controls/RadioButton.qml b/tests/manual/testbench/controls/RadioButton.qml
deleted file mode 100644
index 7ca9bd0a..00000000
--- a/tests/manual/testbench/controls/RadioButton.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "pressed"],
- ]
-
- property Component component: Component {
- RadioButton {
- text: "RadioButton"
- enabled: !is("disabled")
- checked: is("checked")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- }
- }
-}
diff --git a/tests/manual/testbench/controls/RadioDelegate.qml b/tests/manual/testbench/controls/RadioDelegate.qml
deleted file mode 100644
index ddafd14c..00000000
--- a/tests/manual/testbench/controls/RadioDelegate.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "pressed"]
- ]
-
- property Component component: Component {
- RadioDelegate {
- text: "RadioDelegate"
- enabled: !is("disabled")
- checked: is("checked")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- focusPolicy: Qt.StrongFocus
- }
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: RadioDelegate {
- width: parent.width
- text: "RadioDelegate"
- focusPolicy: Qt.StrongFocus
- }
- }
-}
diff --git a/tests/manual/testbench/controls/RangeSlider.qml b/tests/manual/testbench/controls/RangeSlider.qml
deleted file mode 100644
index 71208fb8..00000000
--- a/tests/manual/testbench/controls/RangeSlider.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- ["vertical"],
- ["vertical", "disabled"],
- ["vertical", "pressed"],
- ["horizontal"],
- ["horizontal", "disabled"],
- ["horizontal", "pressed"]
- ]
-
- property Component component: RangeSlider {
- enabled: !is("disabled")
- orientation: is("horizontal") ? Qt.Horizontal : Qt.Vertical
- second.value: 0.5
- }
-}
diff --git a/tests/manual/testbench/controls/RoundButton.qml b/tests/manual/testbench/controls/RoundButton.qml
deleted file mode 100644
index fb2d1d43..00000000
--- a/tests/manual/testbench/controls/RoundButton.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["highlighted"],
- ["highlighted", "disabled"],
- ["highlighted", "pressed"],
- ["highlighted", "checked"],
- ["highlighted", "checkable", "pressed"],
- ["highlighted", "checkable", "checked"],
- ["flat"],
- ["flat", "disabled"],
- ["flat", "pressed"],
- ["flat", "checked"],
- ["flat", "checkable"],
- ["flat", "checkable", "pressed"],
- ["flat", "checkable", "checked", "pressed"],
- ["flat", "checkable", "highlighted"],
- ["flat", "checkable", "highlighted", "pressed"],
- ["flat", "checkable", "highlighted", "checked"]
- ]
-
- property Component component: RoundButton {
- text: "B"
- enabled: !is("disabled")
- flat: is("flat")
- checkable: is("checkable")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- }
-}
diff --git a/tests/manual/testbench/controls/ScrollBar.qml b/tests/manual/testbench/controls/ScrollBar.qml
deleted file mode 100644
index 4ed80f75..00000000
--- a/tests/manual/testbench/controls/ScrollBar.qml
+++ /dev/null
@@ -1,114 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- ["vertical"],
- ["vertical", "disabled"],
- ["vertical", "interactive"],
- ["vertical", "interactive", "disabled"],
- ["horizontal"],
- ["horizontal", "disabled"],
- ["horizontal", "interactive"],
- ["horizontal", "interactive", "disabled"]
- ]
-
- property Component component: Frame {
- width: 100
- height: 100
- clip: true
-
- Label {
- text: "ABCDEFG\nHIJKLMN"
- font.pixelSize: 40
- x: -horizontalScrollBar.position * width
- y: -verticalScrollBar.position * height
- }
-
- ScrollBar {
- id: verticalScrollBar
- enabled: !is("disabled")
- orientation: Qt.Vertical
- interactive: is("interactive")
- visible: is("vertical")
- size: 0.3
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
-
- Binding {
- target: verticalScrollBar
- property: "active"
- value: verticalScrollBar.visible
- }
- }
-
- ScrollBar {
- id: horizontalScrollBar
- enabled: !is("disabled")
- orientation: Qt.Horizontal
- interactive: is("interactive")
- visible: is("horizontal")
- size: 0.3
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
-
- Binding {
- target: horizontalScrollBar
- property: "active"
- value: horizontalScrollBar.visible
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ScrollIndicator.qml b/tests/manual/testbench/controls/ScrollIndicator.qml
deleted file mode 100644
index d9ee487d..00000000
--- a/tests/manual/testbench/controls/ScrollIndicator.qml
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- ["vertical"],
- ["vertical", "disabled"],
- ["horizontal"],
- ["horizontal", "disabled"],
- ]
-
- property Component component: Frame {
- width: 100
- height: 100
- clip: true
-
- Label {
- text: "ABCDEFG\nHIJKLMN"
- font.pixelSize: 40
- x: horizontalScrollIndicator.position * width
- y: verticalScrollIndicator.position * height
- }
-
- ScrollIndicator {
- id: verticalScrollIndicator
- enabled: !is("disabled")
- orientation: Qt.Vertical
- active: true
- visible: is("vertical")
- size: 0.3
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- }
-
- ScrollIndicator {
- id: horizontalScrollIndicator
- enabled: !is("disabled")
- orientation: Qt.Horizontal
- active: true
- visible: is("horizontal")
- size: 0.3
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
-
- Binding {
- target: horizontalScrollIndicator
- property: "active"
- value: horizontalScrollIndicator.visible
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Slider.qml b/tests/manual/testbench/controls/Slider.qml
deleted file mode 100644
index 21e751ac..00000000
--- a/tests/manual/testbench/controls/Slider.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- ["vertical"],
- ["vertical", "disabled"],
- ["vertical", "pressed"],
- ["horizontal"],
- ["horizontal", "disabled"],
- ["horizontal", "pressed"]
- ]
-
- property Component component: Slider {
- enabled: !is("disabled")
- orientation: is("horizontal") ? Qt.Horizontal : Qt.Vertical
- value: 0.5
- }
-}
diff --git a/tests/manual/testbench/controls/SpinBox.qml b/tests/manual/testbench/controls/SpinBox.qml
deleted file mode 100644
index 22ca6cce..00000000
--- a/tests/manual/testbench/controls/SpinBox.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["pressed"],
- ["disabled"],
- ["mirrored"],
- ["mirrored", "pressed"],
- ["mirrored", "disabled"],
- ["editable"],
- ["editable", "pressed"],
- ["editable", "disabled"],
- ["editable", "mirrored"],
- ["editable", "mirrored", "pressed"],
- ["editable", "mirrored", "disabled"]
- ]
-
- property Component component: SpinBox {
- value: 1
- enabled: !is("disabled")
- editable: is("editable")
- up.pressed: is("pressed")
-
- LayoutMirroring.enabled: is("mirrored")
- }
-}
diff --git a/tests/manual/testbench/controls/SplitView.qml b/tests/manual/testbench/controls/SplitView.qml
deleted file mode 100644
index f2801def..00000000
--- a/tests/manual/testbench/controls/SplitView.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- []
- ]
-
- property Component component: SplitView {
- implicitWidth: 400
- implicitHeight: 100
-
- Rectangle {
- color: "salmon"
- implicitWidth: 25
- implicitHeight: 25
- }
- Rectangle {
- color: "navajowhite"
- implicitWidth: 100
- implicitHeight: 100
- }
- Rectangle {
- color: "steelblue"
- implicitWidth: 200
- implicitHeight: 200
- }
- }
-}
diff --git a/tests/manual/testbench/controls/SwipeDelegate.qml b/tests/manual/testbench/controls/SwipeDelegate.qml
deleted file mode 100644
index 13d0a443..00000000
--- a/tests/manual/testbench/controls/SwipeDelegate.qml
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["highlighted"],
- ["highlighted", "pressed"]
- ]
-
- property Component actionComponent: Component {
- Rectangle {
- color: SwipeDelegate.pressed ? "#333" : "#444"
- width: parent ? parent.width : 0
- height: parent ? parent.height: 0
- clip: true
-
- Label {
- text: "Test"
- color: "white"
- anchors.centerIn: parent
- }
- }
- }
-
- property Component component: SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- enabled: !is("disabled")
- checkable: is("checkable")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- focusPolicy: Qt.StrongFocus
-
- swipe.left: actionComponent
- swipe.right: actionComponent
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: SwipeDelegate {
- width: parent.width
- text: "SwipeDelegate"
- focusPolicy: Qt.StrongFocus
-
- swipe.left: actionComponent
- swipe.right: actionComponent
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Switch.qml b/tests/manual/testbench/controls/Switch.qml
deleted file mode 100644
index 6e877a49..00000000
--- a/tests/manual/testbench/controls/Switch.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "disabled", "mirrored"],
- ["checked", "pressed"],
- ["checked", "pressed", "mirrored"],
- ["mirrored"],
- ]
-
- property Component component: Switch {
- text: "Switch"
- enabled: !is("disabled")
- checked: is("checked")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
-
- LayoutMirroring.enabled: is("mirrored")
- }
-}
diff --git a/tests/manual/testbench/controls/SwitchDelegate.qml b/tests/manual/testbench/controls/SwitchDelegate.qml
deleted file mode 100644
index 4f60da55..00000000
--- a/tests/manual/testbench/controls/SwitchDelegate.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["highlighted"],
- ["highlighted", "pressed"],
- ["mirrored"]
- ]
-
- property Component component: SwitchDelegate {
- text: "SwitchDelegate"
- enabled: !is("disabled")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- focusPolicy: Qt.StrongFocus
-
- LayoutMirroring.enabled: is("mirrored")
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: SwitchDelegate {
- width: parent.width
- text: "SwitchDelegate"
- focusPolicy: Qt.StrongFocus
- }
- }
-}
diff --git a/tests/manual/testbench/controls/TabBar.qml b/tests/manual/testbench/controls/TabBar.qml
deleted file mode 100644
index a7a1de49..00000000
--- a/tests/manual/testbench/controls/TabBar.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-// TODO
-QtObject {
- property string customControlName: qsTr("TabBar & TabButton")
-
- property var supportedStates: [
- ["header"],
- ["header", "disabled"],
- ["footer"],
- ["footer", "disabled"]
- ]
-
- property Component component: TabBar {
- implicitHeight: tabButton1.implicitHeight
- enabled: !is("disabled")
- position: is("header") ? TabBar.Header : TabBar.Footer
-
- TabButton {
- id: tabButton1
- text: qsTr("TabButton 1")
- }
- TabButton {
- text: qsTr("TabButton 2")
- }
- TabButton {
- text: qsTr("TabButton 3")
- }
- }
-}
diff --git a/tests/manual/testbench/controls/TextArea.qml b/tests/manual/testbench/controls/TextArea.qml
deleted file mode 100644
index dfe28f79..00000000
--- a/tests/manual/testbench/controls/TextArea.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ]
-
- property Component component: Column {
- spacing: 10
-
- TextArea {
- text: "TextArea\nwith\ntext"
- enabled: !is("disabled")
- }
-
- TextArea {
- placeholderText: "TextArea with placeholderText"
- enabled: !is("disabled")
- }
- }
-}
diff --git a/tests/manual/testbench/controls/TextField.qml b/tests/manual/testbench/controls/TextField.qml
deleted file mode 100644
index 1eed3a6c..00000000
--- a/tests/manual/testbench/controls/TextField.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ]
-
- property Component component: Column {
- spacing: 10
-
- TextField {
- text: "TextField with text"
- enabled: !is("disabled")
- }
-
- TextField {
- placeholderText: "TextField with placeholderText"
- enabled: !is("disabled")
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ToolBar.qml b/tests/manual/testbench/controls/ToolBar.qml
deleted file mode 100644
index 3aba3377..00000000
--- a/tests/manual/testbench/controls/ToolBar.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-// TODO
-QtObject {
- property string customControlName: qsTr("ToolBar, ToolButton & ToolSeparator")
-
- property var supportedStates: [
- ["header"],
- ["header", "disabled"],
- ["footer"],
- ["footer", "disabled"]
- ]
-
- property Component component: ToolBar {
- enabled: !is("disabled")
- position: is("header") ? ToolBar.Header : ToolBar.Footer
-
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: qsTr("ToolButton 1")
- }
- ToolButton {
- text: qsTr("ToolButton 2")
- }
-
- ToolSeparator {}
-
- ToolButton {
- text: qsTr("ToolButton 3")
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ToolTip.qml b/tests/manual/testbench/controls/ToolTip.qml
deleted file mode 100644
index ddcf92f8..00000000
--- a/tests/manual/testbench/controls/ToolTip.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-QtObject {
- property var supportedStates: [
- []
- ]
-
- property Component component: Button {
- text: qsTr("Hover over me")
-
- ToolTip.text: qsTr("ToolTip")
- ToolTip.visible: hovered
- ToolTip.delay: 500
- }
-}
diff --git a/tests/manual/testbench/controls/Tumbler.qml b/tests/manual/testbench/controls/Tumbler.qml
deleted file mode 100644
index a2dbebef..00000000
--- a/tests/manual/testbench/controls/Tumbler.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-import QtQuick.Layouts
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"]
- ]
-
- property Component component: Tumbler {
- model: 20
- enabled: !is("disabled")
-
- LayoutMirroring.enabled: is("mirrored")
- }
-}
diff --git a/tests/manual/testbench/deployment.pri b/tests/manual/testbench/deployment.pri
deleted file mode 100644
index c89af25a..00000000
--- a/tests/manual/testbench/deployment.pri
+++ /dev/null
@@ -1,14 +0,0 @@
-unix:!android {
- isEmpty(target.path) {
- qnx {
- target.path = /tmp/$${TARGET}/bin
- } else {
- target.path = /opt/$${TARGET}/bin
- }
- export(target.path)
- }
- INSTALLS += target
-}
-
-export(INSTALLS)
-
diff --git a/tests/manual/testbench/directoryvalidator.cpp b/tests/manual/testbench/directoryvalidator.cpp
deleted file mode 100644
index d0d4cd8d..00000000
--- a/tests/manual/testbench/directoryvalidator.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "directoryvalidator.h"
-
-#include <QFileInfo>
-
-DirectoryValidator::DirectoryValidator(QObject *parent) :
- QObject(parent)
-{
-}
-
-QString DirectoryValidator::path() const
-{
- return mPath;
-}
-
-void DirectoryValidator::setPath(const QString &path)
-{
- if (path == mPath)
- return;
-
- const bool wasValid = isValid();
- const QString oldErrorMessage = mErrorMessage;
-
- mPath = path;
- mErrorMessage.clear();
-
- QFileInfo fileInfo(mPath);
- if (!fileInfo.exists()) {
- mErrorMessage = QLatin1String("Directory does not exist");
- } else {
- if (!fileInfo.isDir()) {
- mErrorMessage = QLatin1String("Not a directory");
- }
- }
-
- if (isValid() != wasValid)
- emit validChanged();
-
- if (mErrorMessage != oldErrorMessage)
- emit errorMessageChanged();
-
- emit pathChanged();
-}
-
-bool DirectoryValidator::isValid() const
-{
- return mErrorMessage.isEmpty();
-}
-
-QString DirectoryValidator::errorMessage() const
-{
- return mErrorMessage;
-}
diff --git a/tests/manual/testbench/directoryvalidator.h b/tests/manual/testbench/directoryvalidator.h
deleted file mode 100644
index a1650d86..00000000
--- a/tests/manual/testbench/directoryvalidator.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef DIRECTORYVALIDATOR_H
-#define DIRECTORYVALIDATOR_H
-
-#include <QObject>
-
-class DirectoryValidator : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged FINAL)
- Q_PROPERTY(bool valid READ isValid NOTIFY validChanged FINAL)
- Q_PROPERTY(QString errorMessage READ errorMessage NOTIFY errorMessageChanged FINAL)
-
-public:
- explicit DirectoryValidator(QObject *parent = nullptr);
-
- QString path() const;
- void setPath(const QString &path);
-
- bool isValid() const;
- QString errorMessage() const;
-
-signals:
- void pathChanged();
- void validChanged();
- void errorMessageChanged();
-
-private:
- void updateValid();
-
- QString mPath;
- QString mErrorMessage;
-};
-
-#endif // DIRECTORYVALIDATOR_H
diff --git a/tests/manual/testbench/fonts.qrc b/tests/manual/testbench/fonts.qrc
deleted file mode 100644
index fc86e031..00000000
--- a/tests/manual/testbench/fonts.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>fonts/fontawesome.ttf</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/testbench/fonts/LICENSE.txt b/tests/manual/testbench/fonts/LICENSE.txt
deleted file mode 100644
index 8fa3da36..00000000
--- a/tests/manual/testbench/fonts/LICENSE.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Font license info
-
-
-## Font Awesome
-
- Copyright (C) 2016 by Dave Gandy
-
- Author: Dave Gandy
- License: SIL ()
- Homepage: http://fortawesome.github.com/Font-Awesome/
-
-
diff --git a/tests/manual/testbench/fonts/fontawesome.ttf b/tests/manual/testbench/fonts/fontawesome.ttf
deleted file mode 100644
index 49b6c5da..00000000
--- a/tests/manual/testbench/fonts/fontawesome.ttf
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbench/main.cpp b/tests/manual/testbench/main.cpp
deleted file mode 100644
index ddad828f..00000000
--- a/tests/manual/testbench/main.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QDebug>
-#include <QFontDatabase>
-#include <QGuiApplication>
-#include <QSettings>
-#include <QQmlApplicationEngine>
-#include <QQmlContext>
-#include <QQuickStyle>
-#include <QtQuickControls2/private/qquickstyle_p.h>
-
-#include "assetfixer.h"
-#include "clipboard.h"
-#include "directoryvalidator.h"
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setApplicationName("testbench");
- QGuiApplication::setOrganizationName("QtProject");
-
- QGuiApplication app(argc, argv);
-
- QSettings settings;
- QString style = QQuickStyle::name();
- if (!style.isEmpty() && !QQuickStylePrivate::isUsingDefaultStyle())
- settings.setValue("style", style);
- else
- QQuickStyle::setStyle(settings.value("style").isValid() ? settings.value("style").toString() : "Imagine");
-
- if (QFontDatabase::addApplicationFont(":/fonts/fontawesome.ttf") == -1) {
- qWarning() << "Failed to load fontawesome font";
- }
-
- QQmlApplicationEngine engine;
-
- qmlRegisterType<AssetFixer>("Backend", 1, 0, "AssetFixer");
- qmlRegisterType<Clipboard>("Backend", 1, 0, "Clipboard");
- qmlRegisterType<DirectoryValidator>("Backend", 1, 0, "DirectoryValidator");
-
- engine.rootContext()->setContextProperty("availableStyles", QQuickStylePrivate::builtInStyles());
-
- engine.load(QUrl(QStringLiteral("qrc:/testbench.qml")));
-
- return app.exec();
-}
-
diff --git a/tests/manual/testbench/qml.qrc b/tests/manual/testbench/qml.qrc
deleted file mode 100644
index 82e69be6..00000000
--- a/tests/manual/testbench/qml.qrc
+++ /dev/null
@@ -1,55 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>ControlContainer.qml</file>
- <file>controls/Button.qml</file>
- <file>controls/CheckBox.qml</file>
- <file>controls/RadioButton.qml</file>
- <file>controls/CheckDelegate.qml</file>
- <file>controls/ComboBox.qml</file>
- <file>controls/DelayButton.qml</file>
- <file>controls/Dial.qml</file>
- <file>controls/Frame.qml</file>
- <file>controls/GroupBox.qml</file>
- <file>controls/ItemDelegate.qml</file>
- <file>controls/Page.qml</file>
- <file>controls/PageIndicator.qml</file>
- <file>controls/Pane.qml</file>
- <file>controls/ProgressBar.qml</file>
- <file>controls/RadioDelegate.qml</file>
- <file>controls/RangeSlider.qml</file>
- <file>controls/RoundButton.qml</file>
- <file>controls/ScrollBar.qml</file>
- <file>controls/ScrollIndicator.qml</file>
- <file>controls/Slider.qml</file>
- <file>controls/SpinBox.qml</file>
- <file>controls/SwipeDelegate.qml</file>
- <file>controls/Switch.qml</file>
- <file>controls/SwitchDelegate.qml</file>
- <file>controls/TabBar.qml</file>
- <file>controls/TextArea.qml</file>
- <file>controls/TextField.qml</file>
- <file>SettingsDialog.qml</file>
- <file>ColorEditor.qml</file>
- <file>controls/ToolBar.qml</file>
- <file>controls/Dialog.qml</file>
- <file>controls/Menu.qml</file>
- <file>ExampleContainer.qml</file>
- <file>controls/Label.qml</file>
- <file>controls/ToolTip.qml</file>
- <file>controls/Tumbler.qml</file>
- <file>controls/BusyIndicator.qml</file>
- <file>testbench.qml</file>
- <file>controls/MenuBar.qml</file>
- <file>controls/SplitView.qml</file>
- <file>+Imagine/ApplicationWindow.qml</file>
- <file>ApplicationWindow.qml</file>
- <file>+Imagine/ToolBar.qml</file>
- <file>ToolBar.qml</file>
- <file>+Imagine/Menu.qml</file>
- <file>Menu.qml</file>
- <file>+Imagine/Dialog.qml</file>
- <file>Dialog.qml</file>
- <file>ContentPane.qml</file>
- <file>+Imagine/ContentPane.qml</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/testbench/testbench.pro b/tests/manual/testbench/testbench.pro
deleted file mode 100644
index 4509f496..00000000
--- a/tests/manual/testbench/testbench.pro
+++ /dev/null
@@ -1,24 +0,0 @@
-TEMPLATE = app
-
-QT += qml quick quickcontrols2 quickcontrols2-private
-CONFIG += c++11
-
-HEADERS += \
- assetfixer.h \
- directoryvalidator.h \
- clipboard.h
-
-SOURCES += main.cpp \
- assetfixer.cpp \
- directoryvalidator.cpp \
- clipboard.cpp
-
-RESOURCES += qml.qrc \
- fonts.qrc
-
-# Additional import path used to resolve QML modules in Qt Creator's code model
-QML_IMPORT_PATH =
-
-# Default rules for deployment.
-include(deployment.pri)
-
diff --git a/tests/manual/testbench/testbench.qml b/tests/manual/testbench/testbench.qml
deleted file mode 100644
index 8f0951ad..00000000
--- a/tests/manual/testbench/testbench.qml
+++ /dev/null
@@ -1,533 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Window
-import QtQuick.Layouts
-import QtQuick.Controls
-import Qt.labs.folderlistmodel
-import Qt.labs.settings
-
-import Backend
-import "." as Ui
-
-Ui.ApplicationWindow {
- id: window
- visible: true
- width: 1000
- height: 750
- title: "Style Testbench - " + settings.style + " Style" + (usingImagineStyle ? imagineTitleText : "")
-
- readonly property bool usingImagineStyle: settings.style === "Imagine"
- // Some controls should be visible regardless of whether or not custom assets are lacking for it,
- // so we use the default assets in some cases.
- readonly property string defaultImaginePath: "qrc:/qt-project.org/imports/QtQuick/Controls/Imagine/images/"
- property bool settingsLoaded: false
- readonly property string imagineTitleText: " - " + (settings.useCustomImaginePath ? settings.imaginePath : "Default Assets")
-
- LoggingCategory {
- id: brief
- name: "qt.quick.controls.tools.testbench.assetfixer.brief"
- }
-
- Shortcut {
- sequence: "Ctrl+F"
- onActivated: searchTextField.forceActiveFocus()
- }
-
- Shortcut {
- sequence: "Ctrl+Q"
- onActivated: Qt.quit()
- }
-
- Action {
- id: fixAssetsAction
- text: qsTr("Fix Custom Assets")
- shortcut: "Ctrl+Shift+X"
- enabled: usingImagineStyle
- onTriggered: assetFixer.manualFix()
- }
-
- Action {
- id: useCustomAssetsAction
- text: qsTr("Use Custom Assets")
- shortcut: "Ctrl+Shift+C"
- enabled: usingImagineStyle
- checkable: true
- checked: settings.useCustomImaginePath
- onTriggered: settings.useCustomImaginePath = !settings.useCustomImaginePath
- }
-
- Action {
- id: reloadAssetsAction
- text: qsTr("Reload Assets")
- shortcut: "Ctrl+R"
- enabled: usingImagineStyle
- onTriggered: assetFixer.reloadAssets()
- }
-
- FontMetrics {
- id: fontMetrics
- }
-
- Settings {
- id: settings
-
- property alias windowX: window.x
- property alias windowY: window.y
- property alias windowWidth: window.width
- property alias windowHeight: window.height
-
- property string style: "Imagine"
-
- property bool useCustomImaginePath
- property string imaginePath
- property bool autoFixImagineAssets
- property alias imagineDirLastModified: assetFixer.assetDirectoryLastModified
-
- Component.onCompleted: settingsLoaded = true
- }
-
- Settings {
- id: paletteSettings
-
- category: "Palette"
-
- property bool useCustomPalette
- property string window
- property string windowText
- property string base
- property string text
- property string button
- property string buttonText
- property string brightText
- property string toolTipBase
- property string toolTipText
- property string light
- property string midlight
- property string dark
- property string mid
- property string shadow
- property string highlight
- property string highlightedText
- property string link
- }
-
- header: Ui.ToolBar {
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: "\uf0c9"
- font.family: "fontawesome"
- font.pixelSize: Qt.application.font.pixelSize * 1.6
- onClicked: drawer.open()
- }
-
- ToolSeparator {}
-
- TextField {
- id: searchTextField
- placeholderText: "Search"
- }
-
- Item {
- Layout.fillWidth: true
- }
-
- ToolButton {
- id: optionsMenuButton
- text: "\ue800"
- font.family: "FontAwesome"
- font.pixelSize: Qt.application.font.pixelSize * 1.6
- checked: optionsMenu.visible
- checkable: true
-
- onClicked: optionsMenu.open()
-
- Ui.Menu {
- id: optionsMenu
- x: 1
- y: 1 + parent.height
- visible: optionsMenuButton.checked
- closePolicy: Popup.CloseOnPressOutsideParent
-
- MenuItem {
- text: qsTr("Open Asset Directory")
- onClicked: Qt.openUrlExternally(assetFixer.assetDirectoryUrl)
- enabled: usingImagineStyle
- }
-
- MenuItem {
- action: reloadAssetsAction
- }
-
- MenuItem {
- action: useCustomAssetsAction
- }
-
- MenuItem {
- action: fixAssetsAction
- }
-
- MenuSeparator {}
-
- MenuItem {
- id: settingsMenuItem
- text: qsTr("Settings")
- onTriggered: settingsDialog.open()
- }
-
- MenuSeparator {}
-
- MenuItem {
- text: qsTr("Quit")
- onTriggered: Qt.quit()
- }
- }
- }
- }
- }
-
- SettingsDialog {
- id: settingsDialog
- }
-
- Drawer {
- id: drawer
- width: parent.width * 0.33
- height: window.height
- focus: false
- modal: false
-
- Label {
- text: "Drawer contents go here"
- anchors.centerIn: parent
- }
- }
-
- AssetFixer {
- id: assetFixer
- assetDirectory: settings.imaginePath
- // Don't start watching until the settings have loaded, as AssetFixer can be completed before it.
- // AssetFixer needs the settings in order to check the last modified time of the asset directory.
- // Also, wait until the UI has been rendered for the first time so that we can show our busy indicators, etc.
- shouldWatch: usingImagineStyle && settings.useCustomImaginePath && settingsLoaded && initialUiRenderDelayTimer.hasRun
- shouldFix: (shouldWatch && settings.autoFixImagineAssets) || manuallyFixing
-
- onFixSuggested: autoFix()
- onDelayedFixSuggested: assetFixerFileSystemDelayTimer.restart()
- onReloadSuggested: reloadAssets()
-
- property bool manuallyFixing: false
-
- function reloadAssets() {
- console.log(brief, "Reloading assets...")
- // Clear the model, otherwise ListView will keep the old items around
- // with the old assets, even after clearing the pixmap cache
- listView.resettingModel = true
- listView.model = null
- window.Imagine.path = ""
- assetReloadNextFrameTimer.start()
- }
-
- function autoFix() {
- // This is a bit of a hack, but I can't think of a nice way to solve it.
- // The problem is that shouldWatch becomes true, causing startWatching() to be called.
- // If a fix is suggested as a result of that, this function is called.
- // However, the shouldFix binding hasn't been updated yet, so even though shouldWatch
- // and settings.autoFixImagineAssets are both true (the properties that make up its binding),
- // the if check below fails. So, we check for that case with effectiveShouldFix.
- var effectiveShouldFix = shouldWatch && settings.autoFixImagineAssets;
- if (shouldWatch && effectiveShouldFix && assetDirectory.length > 0) {
- fixEmUp();
- }
- }
-
- function manualFix() {
- fixEmUp(true);
- }
-
- function fixEmUp(manually) {
- assetFixer.manuallyFixing = !!manually
-
- // Disable image caching if it hasn't already been done.
- assetFixer.clearImageCache()
-
- busyIndicatorRow.visible = true
- assetFixerAnimationDelayTimer.start()
- }
- }
-
- // The controls' assets don't always "reload" if the path is cleared and then set in the same frame,
- // so we delay the setting to the next frame.
- Timer {
- id: assetReloadNextFrameTimer
- interval: 0
- onTriggered: {
- window.Imagine.path = Qt.binding(function() {
- return settings.useCustomImaginePath && settings.imaginePath.length > 0 ? settings.imaginePath : undefined
- })
-
- infoToolTip.text = "Reloaded assets"
- infoToolTip.timeout = 1500
- infoToolTip.open()
-
- listView.model = controlFolderListModel
- listView.resettingModel = false
-
- console.log(brief, "... reloaded assets.")
- }
- }
-
- // When exporting or deleting a large amount of assets (not uncommon),
- // the filesystem watcher seems to emit directoryChanged() every second or so,
- // so rather than process hundreds of assets every time we get notified, delay
- // it until we haven't been notified for a while.
- Timer {
- id: assetFixerFileSystemDelayTimer
- interval: 2000
- onRunningChanged: {
- if (running) {
- infoToolTip.text = "Assets changed on disk - reloading in 2 seconds if no further changes are detected"
- infoToolTip.timeout = 2000
- infoToolTip.open()
- }
- }
- onTriggered: assetFixer.autoFix()
- }
-
- // Gives the BusyIndicator animation a chance to start.
- Timer {
- id: assetFixerAnimationDelayTimer
- interval: 100
- onTriggered: {
- assetFixer.fixAssets()
- busyIndicatorRow.visible = false
- assetFixer.manuallyFixing = false
- }
- }
-
- // Gives the UI a chance to render before the initial fixup.
- Timer {
- id: initialUiRenderDelayTimer
- interval: 300
- running: true
- onTriggered: hasRun = true
-
- property bool hasRun: false
- }
-
- function getControlElements(control) {
- var props = [];
- for (var p in control) {
- if (p !== "component" && typeof control[p] === 'object')
- props.push(p);
- }
- return props;
- }
-
- Ui.ContentPane {
- id: contentPane
- anchors.fill: parent
-
- palette.window: effectiveColor(paletteSettings.window)
- palette.windowText: effectiveColor(paletteSettings.windowText)
- palette.base: effectiveColor(paletteSettings.base)
- palette.text: effectiveColor(paletteSettings.text)
- palette.button: effectiveColor(paletteSettings.button)
- palette.buttonText: effectiveColor(paletteSettings.buttonText)
- palette.brightText: effectiveColor(paletteSettings.brightText)
- palette.toolTipBase: effectiveColor(paletteSettings.toolTipBase)
- palette.toolTipText: effectiveColor(paletteSettings.toolTipText)
- palette.light: effectiveColor(paletteSettings.light)
- palette.midlight: effectiveColor(paletteSettings.midlight)
- palette.dark: effectiveColor(paletteSettings.dark)
- palette.mid: effectiveColor(paletteSettings.mid)
- palette.shadow: effectiveColor(paletteSettings.shadow)
- palette.highlight: effectiveColor(paletteSettings.highlight)
- palette.highlightedText: effectiveColor(paletteSettings.highlightedText)
- palette.link: effectiveColor(paletteSettings.link)
-
- function effectiveColor(paletteColorString) {
- return paletteSettings.useCustomPalette && paletteColorString.length > 0 ? paletteColorString : undefined
- }
-
- FolderListModel {
- id: controlFolderListModel
- folder: "qrc:/controls"
- showDirs: false
- nameFilters: searchTextField.text.length > 0 ? ["*" + searchTextField.text + "*.qml"] : []
- caseSensitive: false
- }
-
- ListView {
- id: listView
- anchors.fill: parent
- spacing: 30
- visible: !busyIndicatorRow.visible && !resettingModel
-
- property bool resettingModel: false
-
- ScrollBar.vertical: ScrollBar {
- parent: contentPane
- anchors.top: parent.top
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- }
-
- model: controlFolderListModel
- delegate: ColumnLayout {
- id: rootDelegate
- width: listView.width
-
- MenuSeparator {
- Layout.fillWidth: true
- visible: index !== 0
- }
-
- Label {
- text: customControlName.length === 0 ? model.fileBaseName : customControlName
- font.pixelSize: Qt.application.font.pixelSize * 2
- }
-
- readonly property var controlName: model.fileBaseName
- readonly property var controlMetaObject: controlMetaObjectLoader.item
- readonly property string customControlName: controlMetaObject && controlMetaObject.hasOwnProperty("customControlName")
- ? controlMetaObject.customControlName : ""
- readonly property var supportedStates: rootDelegate.controlMetaObject.supportedStates
- readonly property int maxStateCombinations: {
- var largest = 0;
- for (var i = 0; i < supportedStates.length; ++i) {
- var combinations = supportedStates[i];
- if (combinations.length > largest)
- largest = combinations.length;
- }
- return largest;
- }
-
- Loader {
- id: controlMetaObjectLoader
- source: "qrc" + model.filePath
- }
-
- Flow {
- spacing: 10
-
- Layout.fillWidth: true
-
- Repeater {
- id: stateRepeater
- model: rootDelegate.supportedStates
-
- ColumnLayout {
- id: labelWithDelegatesColumn
- spacing: 4
-
- readonly property var states: modelData
- readonly property string statesAsString: states.join("\n")
-
- Label {
- text: statesAsString.length > 0 ? statesAsString : "normal"
-
- // 4 is the most states for any element (Button)
- Layout.preferredHeight: (fontMetrics.lineSpacing) * (rootDelegate.maxStateCombinations + 1)
- }
-
- ControlContainer {
- id: controlContainer
- objectName: controlName + "ControlContainer"
- controlMetaObject: rootDelegate.controlMetaObject
- states: labelWithDelegatesColumn.states
-
- Layout.alignment: Qt.AlignHCenter
- }
- }
- }
- }
-
- ExampleContainer {
- id: exampleContainer
- controlMetaObject: rootDelegate.controlMetaObject
- visible: !!controlMetaObject.exampleComponent
-
- Layout.alignment: Qt.AlignHCenter
- Layout.topMargin: visible ? 14 : 0
- Layout.fillWidth: true
- Layout.preferredHeight: visible ? implicitHeight : 0
- }
- }
- }
- }
-
- RowLayout {
- id: busyIndicatorRow
- anchors.centerIn: parent
- visible: false
-
- BusyIndicator {
- id: busyIndicator
- running: visible
- }
-
- Label {
- text: qsTr("Fixing assets...")
- font.pixelSize: Qt.application.font.pixelSize * 2
- }
- }
-
- ToolTip {
- id: infoToolTip
- x: (parent.width - width) / 2
- y: parent.height - height - 40
- parent: window.contentItem
- }
-}
-
diff --git a/tests/manual/viewinqwidget/CMakeLists.txt b/tests/manual/viewinqwidget/CMakeLists.txt
deleted file mode 100644
index 9a5021fa..00000000
--- a/tests/manual/viewinqwidget/CMakeLists.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-# Generated from viewinqwidget.pro.
-
-#####################################################################
-## viewinqwidget Binary:
-#####################################################################
-
-qt_internal_add_manual_test(viewinqwidget
- GUI
- SOURCES
- main.cpp
- DEFINES
- SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\"
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Qml
- Qt::Quick
- Qt::QuickWidgets
- Qt::Widgets
-)
-
-# Resources:
-set(viewinqwidget_resource_files
- "main.qml"
-)
-
-qt_internal_add_resource(viewinqwidget "viewinqwidget"
- PREFIX
- "/"
- FILES
- ${viewinqwidget_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:viewinqwidget.pro:<TRUE>:
-# OTHER_FILES = "main.qml"
diff --git a/tests/manual/viewinqwidget/main.cpp b/tests/manual/viewinqwidget/main.cpp
deleted file mode 100644
index b6b7a5ff..00000000
--- a/tests/manual/viewinqwidget/main.cpp
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QApplication>
-#include <QHBoxLayout>
-#include <QVBoxLayout>
-#include <QDebug>
-#include <QDir>
-#include <QGroupBox>
-#include <QScreen>
-#include <QQmlApplicationEngine>
-#include <QQmlError>
-#include <QQuickView>
-#include <QQuickWidget>
-
-int main(int argc, char *argv[])
-{
- QApplication app(argc, argv);
-
- QWidget widget;
- widget.setWindowTitle(QT_VERSION_STR);
-
- QHBoxLayout *hLayout = new QHBoxLayout(&widget);
- QGroupBox *groupBox = new QGroupBox("QuickWidget", &widget);
- QVBoxLayout *vLayout = new QVBoxLayout(groupBox);
- QQuickWidget *quickWidget = new QQuickWidget(groupBox);
- quickWidget->setMinimumSize(360, 520);
- vLayout->addWidget(quickWidget);
- quickWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
- quickWidget->setSource(QUrl(QLatin1String("qrc:/main.qml")));
- if (quickWidget->status() == QQuickWidget::Error) {
- qWarning() << quickWidget->errors();
- return 1;
- }
- hLayout->addWidget(groupBox);
-
- const QString gallerySource =
- QDir::cleanPath(QLatin1String(SRCDIR"../../../examples/quickcontrols2/gallery/gallery.qml"));
- QQmlApplicationEngine engine(QUrl::fromLocalFile(gallerySource));
- QObject *root = engine.rootObjects().value(0, nullptr);
- if (!root || !root->isWindowType()) {
- qWarning() << "Load error" << gallerySource;
- return 1;
- }
- groupBox = new QGroupBox("QQuickView/createWindowContainer", &widget);
- vLayout = new QVBoxLayout(groupBox);
- QWidget *container = QWidget::createWindowContainer(qobject_cast<QWindow *>(root), groupBox);
- container->setMinimumSize(360, 520);
- vLayout->addWidget(container);
- hLayout->addWidget(groupBox);
-
- const QRect availableGeometry = widget.screen()->availableGeometry();
- widget.move(availableGeometry.center() - QPoint(widget.sizeHint().width() / 2, widget.sizeHint().height() / 2));
-
- widget.show();
-
- return app.exec();
-}
diff --git a/tests/manual/viewinqwidget/main.qml b/tests/manual/viewinqwidget/main.qml
deleted file mode 100644
index 5ac170b3..00000000
--- a/tests/manual/viewinqwidget/main.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-Item {
- visible: true
- width: 360
- height: 520
-
- ComboBox {
- model: ["First", "Second", "Third"]
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/viewinqwidget/viewinqwidget.pro b/tests/manual/viewinqwidget/viewinqwidget.pro
deleted file mode 100644
index 649829d4..00000000
--- a/tests/manual/viewinqwidget/viewinqwidget.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-QT += qml quick widgets quickwidgets
-TARGET = viewinqwidget
-SOURCES += $$PWD/main.cpp
-OTHER_FILES += main.qml
-RESOURCES += viewinqwidget.qrc
-DEFINES += SRCDIR=\\\"$$PWD/\\\"
diff --git a/tests/manual/viewinqwidget/viewinqwidget.qrc b/tests/manual/viewinqwidget/viewinqwidget.qrc
deleted file mode 100644
index 5f6483ac..00000000
--- a/tests/manual/viewinqwidget/viewinqwidget.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- </qresource>
-</RCC>