diff options
Diffstat (limited to 'tests/manual/quickcontrols/testbench')
59 files changed, 91 insertions, 61 deletions
diff --git a/tests/manual/quickcontrols/testbench/+Imagine/ApplicationWindow.qml b/tests/manual/quickcontrols/testbench/+Imagine/ApplicationWindow.qml index 8621f52da3..45c3e39a23 100644 --- a/tests/manual/quickcontrols/testbench/+Imagine/ApplicationWindow.qml +++ b/tests/manual/quickcontrols/testbench/+Imagine/ApplicationWindow.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls.Imagine diff --git a/tests/manual/quickcontrols/testbench/+Imagine/ContentPane.qml b/tests/manual/quickcontrols/testbench/+Imagine/ContentPane.qml index e0c66c7c1d..bb0a8a2648 100644 --- a/tests/manual/quickcontrols/testbench/+Imagine/ContentPane.qml +++ b/tests/manual/quickcontrols/testbench/+Imagine/ContentPane.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls.Imagine diff --git a/tests/manual/quickcontrols/testbench/+Imagine/Dialog.qml b/tests/manual/quickcontrols/testbench/+Imagine/Dialog.qml index 3cb16399cf..3f8a131c12 100644 --- a/tests/manual/quickcontrols/testbench/+Imagine/Dialog.qml +++ b/tests/manual/quickcontrols/testbench/+Imagine/Dialog.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls.Imagine diff --git a/tests/manual/quickcontrols/testbench/+Imagine/Menu.qml b/tests/manual/quickcontrols/testbench/+Imagine/Menu.qml index 548f4a9c47..6614977ce6 100644 --- a/tests/manual/quickcontrols/testbench/+Imagine/Menu.qml +++ b/tests/manual/quickcontrols/testbench/+Imagine/Menu.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls.Imagine diff --git a/tests/manual/quickcontrols/testbench/+Imagine/ToolBar.qml b/tests/manual/quickcontrols/testbench/+Imagine/ToolBar.qml index 0b2653835f..77a39f063d 100644 --- a/tests/manual/quickcontrols/testbench/+Imagine/ToolBar.qml +++ b/tests/manual/quickcontrols/testbench/+Imagine/ToolBar.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls.Imagine diff --git a/tests/manual/quickcontrols/testbench/ApplicationWindow.qml b/tests/manual/quickcontrols/testbench/ApplicationWindow.qml index dca67c4750..57baed7127 100644 --- a/tests/manual/quickcontrols/testbench/ApplicationWindow.qml +++ b/tests/manual/quickcontrols/testbench/ApplicationWindow.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/ColorEditor.qml b/tests/manual/quickcontrols/testbench/ColorEditor.qml index dd5d7f3aaa..4d2ab5ad86 100644 --- a/tests/manual/quickcontrols/testbench/ColorEditor.qml +++ b/tests/manual/quickcontrols/testbench/ColorEditor.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls @@ -29,5 +29,6 @@ RowLayout { } Layout.preferredWidth: 200 + Layout.fillWidth: false } } diff --git a/tests/manual/quickcontrols/testbench/ContentPane.qml b/tests/manual/quickcontrols/testbench/ContentPane.qml index 5bff3f5d23..a42edbdb81 100644 --- a/tests/manual/quickcontrols/testbench/ContentPane.qml +++ b/tests/manual/quickcontrols/testbench/ContentPane.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/ControlContainer.qml b/tests/manual/quickcontrols/testbench/ControlContainer.qml index 34688fb7dd..57ba0c1a85 100644 --- a/tests/manual/quickcontrols/testbench/ControlContainer.qml +++ b/tests/manual/quickcontrols/testbench/ControlContainer.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick diff --git a/tests/manual/quickcontrols/testbench/Dialog.qml b/tests/manual/quickcontrols/testbench/Dialog.qml index a1a4e5d624..f909386c86 100644 --- a/tests/manual/quickcontrols/testbench/Dialog.qml +++ b/tests/manual/quickcontrols/testbench/Dialog.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/ExampleContainer.qml b/tests/manual/quickcontrols/testbench/ExampleContainer.qml index 19dbb9a41c..478012c884 100644 --- a/tests/manual/quickcontrols/testbench/ExampleContainer.qml +++ b/tests/manual/quickcontrols/testbench/ExampleContainer.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/Menu.qml b/tests/manual/quickcontrols/testbench/Menu.qml index 15786af830..8f39739aaa 100644 --- a/tests/manual/quickcontrols/testbench/Menu.qml +++ b/tests/manual/quickcontrols/testbench/Menu.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/SettingsDialog.qml b/tests/manual/quickcontrols/testbench/SettingsDialog.qml index f879e5074f..545cf6fa83 100644 --- a/tests/manual/quickcontrols/testbench/SettingsDialog.qml +++ b/tests/manual/quickcontrols/testbench/SettingsDialog.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls @@ -120,6 +120,7 @@ Ui.Dialog { GroupBox { title: qsTr("General") Layout.fillWidth: true + Layout.fillHeight: false GridLayout { columns: 2 @@ -161,6 +162,7 @@ Ui.Dialog { title: qsTr("Imagine Style") visible: usingImagineStyle Layout.fillWidth: true + Layout.fillHeight: false Layout.columnSpan: 2 GridLayout { @@ -173,6 +175,7 @@ Ui.Dialog { enabled: usingImagineStyle Layout.columnSpan: 2 + Layout.fillWidth: false } Label { @@ -217,6 +220,7 @@ Ui.Dialog { enabled: usingImagineStyle && customImagineStyleCheckBox.checked Layout.columnSpan: 2 + Layout.fillWidth: false ToolTip { text: "If set, custom Imagine style assets will be modified to be compliant whenever they have changed on disk" @@ -231,6 +235,7 @@ Ui.Dialog { GroupBox { title: qsTr("Palette") Layout.fillWidth: true + Layout.fillHeight: false GridLayout { columns: 2 @@ -239,6 +244,7 @@ Ui.Dialog { CheckBox { id: useCustomPaletteCheckBox text: qsTr("Use Custom Palette") + Layout.fillWidth: false } ColorEditor { @@ -376,6 +382,7 @@ Ui.Dialog { Layout.columnSpan: 2 Layout.alignment: Qt.AlignRight + Layout.fillWidth: false } } } diff --git a/tests/manual/quickcontrols/testbench/ToolBar.qml b/tests/manual/quickcontrols/testbench/ToolBar.qml index ffbf422a76..1d7c503f56 100644 --- a/tests/manual/quickcontrols/testbench/ToolBar.qml +++ b/tests/manual/quickcontrols/testbench/ToolBar.qml @@ -1,5 +1,5 @@ // Copyright (C) 2020 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/assetfixer.cpp b/tests/manual/quickcontrols/testbench/assetfixer.cpp index 57936b737b..c2582a561a 100644 --- a/tests/manual/quickcontrols/testbench/assetfixer.cpp +++ b/tests/manual/quickcontrols/testbench/assetfixer.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include "assetfixer.h" diff --git a/tests/manual/quickcontrols/testbench/assetfixer.h b/tests/manual/quickcontrols/testbench/assetfixer.h index 88594a87d0..1651ffad26 100644 --- a/tests/manual/quickcontrols/testbench/assetfixer.h +++ b/tests/manual/quickcontrols/testbench/assetfixer.h @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef ASSETFIXER_H #define ASSETFIXER_H diff --git a/tests/manual/quickcontrols/testbench/clipboard.cpp b/tests/manual/quickcontrols/testbench/clipboard.cpp index e8017e0e23..93ee93cacf 100644 --- a/tests/manual/quickcontrols/testbench/clipboard.cpp +++ b/tests/manual/quickcontrols/testbench/clipboard.cpp @@ -1,11 +1,12 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include "clipboard.h" #include <QClipboard> #include <QGuiApplication> #include <QSettings> +#include <QMap> const QStringList keys = { "Palette/window", diff --git a/tests/manual/quickcontrols/testbench/clipboard.h b/tests/manual/quickcontrols/testbench/clipboard.h index f262638391..c56103b84c 100644 --- a/tests/manual/quickcontrols/testbench/clipboard.h +++ b/tests/manual/quickcontrols/testbench/clipboard.h @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef CLIPBOARD_H #define CLIPBOARD_H diff --git a/tests/manual/quickcontrols/testbench/controls/BusyIndicator.qml b/tests/manual/quickcontrols/testbench/controls/BusyIndicator.qml index c61c100668..1c14c13a00 100644 --- a/tests/manual/quickcontrols/testbench/controls/BusyIndicator.qml +++ b/tests/manual/quickcontrols/testbench/controls/BusyIndicator.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Button.qml b/tests/manual/quickcontrols/testbench/controls/Button.qml index 1dcf05da36..12f398ccab 100644 --- a/tests/manual/quickcontrols/testbench/controls/Button.qml +++ b/tests/manual/quickcontrols/testbench/controls/Button.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/CheckBox.qml b/tests/manual/quickcontrols/testbench/controls/CheckBox.qml index 4973033a4d..b595e592b2 100644 --- a/tests/manual/quickcontrols/testbench/controls/CheckBox.qml +++ b/tests/manual/quickcontrols/testbench/controls/CheckBox.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml b/tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml index d64339501f..085b5acc82 100644 --- a/tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml +++ b/tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls @@ -15,6 +15,9 @@ QtObject { ["partially-checked"], ["partially-checked", "disabled"], ["partially-checked", "pressed"], + ["highlighted"], + ["highlighted", "pressed"], + ["mirrored"] ] property Component component: CheckDelegate { @@ -23,7 +26,10 @@ QtObject { 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 + highlighted: is("highlighted") focusPolicy: Qt.StrongFocus + + LayoutMirroring.enabled: is("mirrored") } property Component exampleComponent: ListView { diff --git a/tests/manual/quickcontrols/testbench/controls/ComboBox.qml b/tests/manual/quickcontrols/testbench/controls/ComboBox.qml index 39b8579630..a1c57db693 100644 --- a/tests/manual/quickcontrols/testbench/controls/ComboBox.qml +++ b/tests/manual/quickcontrols/testbench/controls/ComboBox.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/DelayButton.qml b/tests/manual/quickcontrols/testbench/controls/DelayButton.qml index 1c36a4f7ca..8509932a0d 100644 --- a/tests/manual/quickcontrols/testbench/controls/DelayButton.qml +++ b/tests/manual/quickcontrols/testbench/controls/DelayButton.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Dial.qml b/tests/manual/quickcontrols/testbench/controls/Dial.qml index c4847ac886..ec7f5411e3 100644 --- a/tests/manual/quickcontrols/testbench/controls/Dial.qml +++ b/tests/manual/quickcontrols/testbench/controls/Dial.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Dialog.qml b/tests/manual/quickcontrols/testbench/controls/Dialog.qml index 1a25fbdfb9..259e1742b4 100644 --- a/tests/manual/quickcontrols/testbench/controls/Dialog.qml +++ b/tests/manual/quickcontrols/testbench/controls/Dialog.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Frame.qml b/tests/manual/quickcontrols/testbench/controls/Frame.qml index a57cb76f18..76f90d7d2f 100644 --- a/tests/manual/quickcontrols/testbench/controls/Frame.qml +++ b/tests/manual/quickcontrols/testbench/controls/Frame.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/GroupBox.qml b/tests/manual/quickcontrols/testbench/controls/GroupBox.qml index 23c938ff21..44c122a230 100644 --- a/tests/manual/quickcontrols/testbench/controls/GroupBox.qml +++ b/tests/manual/quickcontrols/testbench/controls/GroupBox.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/ItemDelegate.qml b/tests/manual/quickcontrols/testbench/controls/ItemDelegate.qml index e8171c36bc..709a8d5b5f 100644 --- a/tests/manual/quickcontrols/testbench/controls/ItemDelegate.qml +++ b/tests/manual/quickcontrols/testbench/controls/ItemDelegate.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Label.qml b/tests/manual/quickcontrols/testbench/controls/Label.qml index a5074e8faf..6632643803 100644 --- a/tests/manual/quickcontrols/testbench/controls/Label.qml +++ b/tests/manual/quickcontrols/testbench/controls/Label.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Menu.qml b/tests/manual/quickcontrols/testbench/controls/Menu.qml index aeadee4f86..f1948a7399 100644 --- a/tests/manual/quickcontrols/testbench/controls/Menu.qml +++ b/tests/manual/quickcontrols/testbench/controls/Menu.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls @@ -42,15 +42,18 @@ QtObject { MenuItem { text: "Checked" + checkable: true checked: true } MenuItem { text: "Checked + Pressed" + checkable: true checked: true down: true } MenuItem { text: "Checked + Disabled" + checkable: true checked: true enabled: false } diff --git a/tests/manual/quickcontrols/testbench/controls/MenuBar.qml b/tests/manual/quickcontrols/testbench/controls/MenuBar.qml index bed6fbd909..3ea2e2be83 100644 --- a/tests/manual/quickcontrols/testbench/controls/MenuBar.qml +++ b/tests/manual/quickcontrols/testbench/controls/MenuBar.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Page.qml b/tests/manual/quickcontrols/testbench/controls/Page.qml index d8c29a7fe4..ef3a0dca7d 100644 --- a/tests/manual/quickcontrols/testbench/controls/Page.qml +++ b/tests/manual/quickcontrols/testbench/controls/Page.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/PageIndicator.qml b/tests/manual/quickcontrols/testbench/controls/PageIndicator.qml index 34a242a6af..4b7c0d5a0d 100644 --- a/tests/manual/quickcontrols/testbench/controls/PageIndicator.qml +++ b/tests/manual/quickcontrols/testbench/controls/PageIndicator.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Pane.qml b/tests/manual/quickcontrols/testbench/controls/Pane.qml index 9f60bec588..7af1ae731a 100644 --- a/tests/manual/quickcontrols/testbench/controls/Pane.qml +++ b/tests/manual/quickcontrols/testbench/controls/Pane.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/ProgressBar.qml b/tests/manual/quickcontrols/testbench/controls/ProgressBar.qml index bd4ab8e379..3632effa3e 100644 --- a/tests/manual/quickcontrols/testbench/controls/ProgressBar.qml +++ b/tests/manual/quickcontrols/testbench/controls/ProgressBar.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/RadioButton.qml b/tests/manual/quickcontrols/testbench/controls/RadioButton.qml index 00beb1bac9..feb8d8f195 100644 --- a/tests/manual/quickcontrols/testbench/controls/RadioButton.qml +++ b/tests/manual/quickcontrols/testbench/controls/RadioButton.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/RadioDelegate.qml b/tests/manual/quickcontrols/testbench/controls/RadioDelegate.qml index 4dab387fcf..e182cae8ad 100644 --- a/tests/manual/quickcontrols/testbench/controls/RadioDelegate.qml +++ b/tests/manual/quickcontrols/testbench/controls/RadioDelegate.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls @@ -11,7 +11,10 @@ QtObject { ["pressed"], ["checked"], ["checked", "disabled"], - ["checked", "pressed"] + ["checked", "pressed"], + ["highlighted"], + ["highlighted", "pressed"], + ["mirrored"] ] property Component component: Component { @@ -21,7 +24,10 @@ QtObject { 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") focusPolicy: Qt.StrongFocus + + LayoutMirroring.enabled: is("mirrored") } } diff --git a/tests/manual/quickcontrols/testbench/controls/RangeSlider.qml b/tests/manual/quickcontrols/testbench/controls/RangeSlider.qml index 18a2418451..75bfbd97a4 100644 --- a/tests/manual/quickcontrols/testbench/controls/RangeSlider.qml +++ b/tests/manual/quickcontrols/testbench/controls/RangeSlider.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/RoundButton.qml b/tests/manual/quickcontrols/testbench/controls/RoundButton.qml index 530aaee338..9e25c8210a 100644 --- a/tests/manual/quickcontrols/testbench/controls/RoundButton.qml +++ b/tests/manual/quickcontrols/testbench/controls/RoundButton.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/ScrollBar.qml b/tests/manual/quickcontrols/testbench/controls/ScrollBar.qml index 5fa00fec0f..d2124a53cb 100644 --- a/tests/manual/quickcontrols/testbench/controls/ScrollBar.qml +++ b/tests/manual/quickcontrols/testbench/controls/ScrollBar.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/ScrollIndicator.qml b/tests/manual/quickcontrols/testbench/controls/ScrollIndicator.qml index 5c0c0d4edc..f43027ae58 100644 --- a/tests/manual/quickcontrols/testbench/controls/ScrollIndicator.qml +++ b/tests/manual/quickcontrols/testbench/controls/ScrollIndicator.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Slider.qml b/tests/manual/quickcontrols/testbench/controls/Slider.qml index d35e8fe0fa..098621fc73 100644 --- a/tests/manual/quickcontrols/testbench/controls/Slider.qml +++ b/tests/manual/quickcontrols/testbench/controls/Slider.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/SpinBox.qml b/tests/manual/quickcontrols/testbench/controls/SpinBox.qml index 06c6ca43ef..b7df6a080e 100644 --- a/tests/manual/quickcontrols/testbench/controls/SpinBox.qml +++ b/tests/manual/quickcontrols/testbench/controls/SpinBox.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/SplitView.qml b/tests/manual/quickcontrols/testbench/controls/SplitView.qml index c51ac846f2..7d7a975561 100644 --- a/tests/manual/quickcontrols/testbench/controls/SplitView.qml +++ b/tests/manual/quickcontrols/testbench/controls/SplitView.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/SwipeDelegate.qml b/tests/manual/quickcontrols/testbench/controls/SwipeDelegate.qml index e04f0bb630..36d683a8ac 100644 --- a/tests/manual/quickcontrols/testbench/controls/SwipeDelegate.qml +++ b/tests/manual/quickcontrols/testbench/controls/SwipeDelegate.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Switch.qml b/tests/manual/quickcontrols/testbench/controls/Switch.qml index c7e5103183..db44ed1900 100644 --- a/tests/manual/quickcontrols/testbench/controls/Switch.qml +++ b/tests/manual/quickcontrols/testbench/controls/Switch.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/SwitchDelegate.qml b/tests/manual/quickcontrols/testbench/controls/SwitchDelegate.qml index 9508b2ce80..6fe3ecefce 100644 --- a/tests/manual/quickcontrols/testbench/controls/SwitchDelegate.qml +++ b/tests/manual/quickcontrols/testbench/controls/SwitchDelegate.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/TabBar.qml b/tests/manual/quickcontrols/testbench/controls/TabBar.qml index e0286146f9..96ee0896f4 100644 --- a/tests/manual/quickcontrols/testbench/controls/TabBar.qml +++ b/tests/manual/quickcontrols/testbench/controls/TabBar.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/TextArea.qml b/tests/manual/quickcontrols/testbench/controls/TextArea.qml index 3b76ef2b0a..b9c08846e4 100644 --- a/tests/manual/quickcontrols/testbench/controls/TextArea.qml +++ b/tests/manual/quickcontrols/testbench/controls/TextArea.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/TextField.qml b/tests/manual/quickcontrols/testbench/controls/TextField.qml index 205418f08c..74719dacad 100644 --- a/tests/manual/quickcontrols/testbench/controls/TextField.qml +++ b/tests/manual/quickcontrols/testbench/controls/TextField.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/ToolBar.qml b/tests/manual/quickcontrols/testbench/controls/ToolBar.qml index 1fccb74e65..867556d152 100644 --- a/tests/manual/quickcontrols/testbench/controls/ToolBar.qml +++ b/tests/manual/quickcontrols/testbench/controls/ToolBar.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls @@ -34,6 +34,8 @@ QtObject { ToolButton { text: qsTr("ToolButton 3") + checkable: true + checked: true } } } diff --git a/tests/manual/quickcontrols/testbench/controls/ToolTip.qml b/tests/manual/quickcontrols/testbench/controls/ToolTip.qml index de8f117429..f6ec986047 100644 --- a/tests/manual/quickcontrols/testbench/controls/ToolTip.qml +++ b/tests/manual/quickcontrols/testbench/controls/ToolTip.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/controls/Tumbler.qml b/tests/manual/quickcontrols/testbench/controls/Tumbler.qml index 1c571d22b1..067d3664b6 100644 --- a/tests/manual/quickcontrols/testbench/controls/Tumbler.qml +++ b/tests/manual/quickcontrols/testbench/controls/Tumbler.qml @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtQuick import QtQuick.Controls diff --git a/tests/manual/quickcontrols/testbench/directoryvalidator.cpp b/tests/manual/quickcontrols/testbench/directoryvalidator.cpp index c1c083a246..f174832979 100644 --- a/tests/manual/quickcontrols/testbench/directoryvalidator.cpp +++ b/tests/manual/quickcontrols/testbench/directoryvalidator.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include "directoryvalidator.h" diff --git a/tests/manual/quickcontrols/testbench/directoryvalidator.h b/tests/manual/quickcontrols/testbench/directoryvalidator.h index 89bb03bd29..b411662281 100644 --- a/tests/manual/quickcontrols/testbench/directoryvalidator.h +++ b/tests/manual/quickcontrols/testbench/directoryvalidator.h @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef DIRECTORYVALIDATOR_H #define DIRECTORYVALIDATOR_H diff --git a/tests/manual/quickcontrols/testbench/fonts.qrc b/tests/manual/quickcontrols/testbench/fonts.qrc index fc86e03183..4203c83326 100644 --- a/tests/manual/quickcontrols/testbench/fonts.qrc +++ b/tests/manual/quickcontrols/testbench/fonts.qrc @@ -1,5 +1,5 @@ <RCC> <qresource prefix="/"> - <file>fonts/fontawesome.ttf</file> + <file>fonts/fontello.ttf</file> </qresource> </RCC> diff --git a/tests/manual/quickcontrols/testbench/main.cpp b/tests/manual/quickcontrols/testbench/main.cpp index 4a629523e6..14da6e7b2c 100644 --- a/tests/manual/quickcontrols/testbench/main.cpp +++ b/tests/manual/quickcontrols/testbench/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <QDebug> #include <QFontDatabase> diff --git a/tests/manual/quickcontrols/testbench/testbench.qml b/tests/manual/quickcontrols/testbench/testbench.qml index 9df1ed873f..68975cfd69 100644 --- a/tests/manual/quickcontrols/testbench/testbench.qml +++ b/tests/manual/quickcontrols/testbench/testbench.qml @@ -1,5 +1,5 @@ // Copyright (C) 2022 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only import QtCore import QtQuick @@ -139,7 +139,11 @@ Ui.ApplicationWindow { text: "\ue801" font.family: "fontello" visible: searchTextField.length > 0 - onClicked: searchTextField.clear() + onClicked: { + searchTextField.clear() + // textEdited is not emitted for clear(), so we have to set this ourselves. + settings.lastSearchText = "" + } Layout.leftMargin: -5 } |