ButtonSection.qml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. id: section
  9. caption: qsTr("Button")
  10. SectionLayout {
  11. Label {
  12. text: qsTr("Flat")
  13. tooltip: qsTr("Whether the button is flat.")
  14. disabledState: !backendValues.flat.isAvailable
  15. }
  16. SecondColumnLayout {
  17. CheckBox {
  18. text: backendValues.flat.valueToString
  19. backendValue: backendValues.flat
  20. Layout.fillWidth: true
  21. enabled: backendValue.isAvailable
  22. }
  23. }
  24. Label {
  25. text: qsTr("Highlighted")
  26. tooltip: qsTr("Whether the button is highlighted.")
  27. disabledState: !backendValues.highlighted.isAvailable
  28. }
  29. SecondColumnLayout {
  30. CheckBox {
  31. text: backendValues.highlighted.valueToString
  32. backendValue: backendValues.highlighted
  33. Layout.fillWidth: true
  34. enabled: backendValue.isAvailable
  35. }
  36. }
  37. }
  38. }