aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/designer/CheckSection.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/designer/CheckSection.qml')
-rw-r--r--src/quickcontrols/designer/CheckSection.qml35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/quickcontrols/designer/CheckSection.qml b/src/quickcontrols/designer/CheckSection.qml
new file mode 100644
index 0000000000..b58d6a27ce
--- /dev/null
+++ b/src/quickcontrols/designer/CheckSection.qml
@@ -0,0 +1,35 @@
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+import QtQuick
+import HelperWidgets
+import QtQuick.Layouts
+
+Section {
+ SectionLayout {
+ Label {
+ text: qsTr("Check State")
+ tooltip: qsTr("The current check state.")
+ }
+ SecondColumnLayout {
+ ComboBox {
+ backendValue: backendValues.checkState
+ model: [ "Unchecked", "PartiallyChecked", "Checked" ]
+ scope: "Qt"
+ Layout.fillWidth: true
+ }
+ }
+
+ Label {
+ text: qsTr("Tri-state")
+ tooltip: qsTr("Whether the checkbox has three states.")
+ }
+ SecondColumnLayout {
+ CheckBox {
+ text: backendValues.tristate.valueToString
+ backendValue: backendValues.tristate
+ Layout.fillWidth: true
+ }
+ }
+ }
+}