CheckSection.qml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (C) 2017 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. // Qt-Security score:significant reason:default
  4. import QtQuick
  5. import HelperWidgets
  6. import QtQuick.Layouts
  7. Section {
  8. SectionLayout {
  9. Label {
  10. text: qsTr("Check State")
  11. tooltip: qsTr("The current check state.")
  12. }
  13. SecondColumnLayout {
  14. ComboBox {
  15. backendValue: backendValues.checkState
  16. model: [ "Unchecked", "PartiallyChecked", "Checked" ]
  17. scope: "Qt"
  18. Layout.fillWidth: true
  19. }
  20. }
  21. Label {
  22. text: qsTr("Tri-state")
  23. tooltip: qsTr("Whether the checkbox has three states.")
  24. }
  25. SecondColumnLayout {
  26. CheckBox {
  27. text: backendValues.tristate.valueToString
  28. backendValue: backendValues.tristate
  29. Layout.fillWidth: true
  30. }
  31. }
  32. }
  33. }