blob: b58d6a27ce53e53cf1b206873aeec522c3792689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
}
}
}
}
|