TumblerSpecifics.qml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. Column {
  8. width: parent.width
  9. Section {
  10. width: parent.width
  11. caption: qsTr("Tumbler")
  12. SectionLayout {
  13. Label {
  14. text: qsTr("Visible Count")
  15. tooltip: qsTr("The count of visible items.")
  16. }
  17. SecondColumnLayout {
  18. SpinBox {
  19. maximumValue: 9999999
  20. minimumValue: -9999999
  21. decimals: 0
  22. backendValue: backendValues.visibleItemCount
  23. Layout.fillWidth: true
  24. }
  25. }
  26. Label {
  27. text: qsTr("Current")
  28. tooltip: qsTr("The index of the current item.")
  29. }
  30. SecondColumnLayout {
  31. SpinBox {
  32. maximumValue: 9999999
  33. minimumValue: -9999999
  34. decimals: 0
  35. backendValue: backendValues.currentIndex
  36. Layout.fillWidth: true
  37. }
  38. }
  39. Label {
  40. text: qsTr("Wrap")
  41. tooltip: qsTr("Whether the tumbler wrap.")
  42. }
  43. SecondColumnLayout {
  44. CheckBox {
  45. text: backendValues.wrap.valueToString
  46. backendValue: backendValues.wrap
  47. Layout.fillWidth: true
  48. }
  49. }
  50. Label {
  51. text: qsTr("flickDeceleration")
  52. tooltip: qsTr("The rate at which a flick will decelerate.")
  53. }
  54. SecondColumnLayout {
  55. SpinBox {
  56. maximumValue: 9999999
  57. minimumValue: 0
  58. decimals: 2
  59. stepSize: 0.1
  60. backendValue: backendValues.flickDeceleration
  61. Layout.fillWidth: true
  62. }
  63. }
  64. }
  65. }
  66. ControlSection {
  67. width: parent.width
  68. }
  69. FontSection {
  70. width: parent.width
  71. }
  72. PaddingSection {
  73. width: parent.width
  74. }
  75. }