diff options
Diffstat (limited to 'tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml')
-rw-r--r-- | tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml | 8 |
1 files changed, 7 insertions, 1 deletions
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 { |