GridGeometrySection.qml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // Copyright (C) 2022 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 2.15
  4. import QtQuick.Layouts 1.15
  5. import HelperWidgets 2.0
  6. import StudioTheme 1.0 as StudioTheme
  7. Column {
  8. width: parent.width
  9. Section {
  10. width: parent.width
  11. caption: qsTr("Grid Geometry")
  12. SectionLayout {
  13. PropertyLabel {
  14. text: qsTr("Horizontal Lines")
  15. tooltip: qsTr("Sets the number of horizontal lines in the grid.")
  16. }
  17. SecondColumnLayout {
  18. SpinBox {
  19. minimumValue: 0
  20. maximumValue: 999999
  21. decimals: 0
  22. backendValue: backendValues.horizontalLines
  23. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  24. + StudioTheme.Values.actionIndicatorWidth
  25. }
  26. ExpandingSpacer {}
  27. }
  28. PropertyLabel {
  29. text: qsTr("Vertical Lines")
  30. tooltip: qsTr("Sets the number of vertical lines in the grid.")
  31. }
  32. SecondColumnLayout {
  33. SpinBox {
  34. minimumValue: 0
  35. maximumValue: 999999
  36. decimals: 0
  37. backendValue: backendValues.verticalLines
  38. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  39. + StudioTheme.Values.actionIndicatorWidth
  40. }
  41. ExpandingSpacer {}
  42. }
  43. PropertyLabel {
  44. text: qsTr("Horizontal Step")
  45. tooltip: qsTr("Sets the space between horizontal lines.")
  46. }
  47. SecondColumnLayout {
  48. SpinBox {
  49. minimumValue: 0
  50. maximumValue: 999999
  51. decimals: 2
  52. stepSize: 0.1
  53. backendValue: backendValues.horizontalStep
  54. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  55. + StudioTheme.Values.actionIndicatorWidth
  56. }
  57. ExpandingSpacer {}
  58. }
  59. PropertyLabel {
  60. text: qsTr("Vertical Step")
  61. tooltip: qsTr("Sets the space between vertical lines.")
  62. }
  63. SecondColumnLayout {
  64. SpinBox {
  65. minimumValue: 0
  66. maximumValue: 999999
  67. decimals: 2
  68. stepSize: 0.1
  69. backendValue: backendValues.verticalStep
  70. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  71. + StudioTheme.Values.actionIndicatorWidth
  72. }
  73. ExpandingSpacer {}
  74. }
  75. }
  76. }
  77. }