InfiniteGridSection.qml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright (C) 2023 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("Infinite Grid")
  12. SectionLayout {
  13. PropertyLabel {
  14. text: qsTr("Visible")
  15. tooltip: qsTr("Sets whether the infinite grid is visible.")
  16. }
  17. CheckBox {
  18. text: backendValues.visible.valueToString
  19. backendValue: backendValues.visible
  20. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  21. + StudioTheme.Values.actionIndicatorWidth
  22. }
  23. PropertyLabel {
  24. text: qsTr("Axis Lines")
  25. tooltip: qsTr("Sets whether the axis lines are visible.")
  26. }
  27. CheckBox {
  28. text: backendValues.gridAxes ? qsTr("On") : qsTr("Off")
  29. backendValue: backendValues.gridAxes
  30. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  31. + StudioTheme.Values.actionIndicatorWidth
  32. }
  33. PropertyLabel {
  34. text: qsTr("Grid Interval")
  35. tooltip: qsTr("Sets the distance between grid lines.")
  36. }
  37. SecondColumnLayout {
  38. SpinBox {
  39. minimumValue: 0
  40. maximumValue: 9999999
  41. decimals: 2
  42. stepSize: 0.1
  43. backendValue: backendValues.gridInterval
  44. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  45. + StudioTheme.Values.actionIndicatorWidth
  46. }
  47. ExpandingSpacer {}
  48. }
  49. }
  50. }
  51. }