GraphsViewSpecifics.qml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // Copyright (C) 2024 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick
  4. import HelperWidgets
  5. import QtQuick.Layouts
  6. Column {
  7. anchors.left: parent.left
  8. anchors.right: parent.right
  9. Section {
  10. anchors.left: parent.left
  11. anchors.right: parent.right
  12. caption: qsTr("Background Color")
  13. ColorEditor {
  14. caption: qsTr("Background Color")
  15. backendValue: backendValues.backgroundColor
  16. supportGradient: false
  17. }
  18. }
  19. Section {
  20. anchors.left: parent.left
  21. anchors.right: parent.right
  22. caption: qsTr("Margins")
  23. SectionLayout {
  24. rows: 4
  25. Label {
  26. text: qsTr("Top")
  27. tooltip: qsTr("The amount of empty space on the top of the graph.")
  28. Layout.fillWidth: true
  29. }
  30. SecondColumnLayout {
  31. SpinBox {
  32. backendValue: backendValues.marginTop
  33. minimumValue: 0.0
  34. maximumValue: 9999.0
  35. stepSize: 1.0
  36. decimals: 1
  37. Layout.fillWidth: true
  38. }
  39. }
  40. Label {
  41. text: qsTr("Bottom")
  42. tooltip: qsTr("The amount of empty space on the bottom of the graph.")
  43. Layout.fillWidth: true
  44. }
  45. SecondColumnLayout {
  46. SpinBox {
  47. backendValue: backendValues.marginBottom
  48. minimumValue: 0.0
  49. maximumValue: 9999.0
  50. stepSize: 1.0
  51. decimals: 1
  52. Layout.fillWidth: true
  53. }
  54. }
  55. Label {
  56. text: qsTr("Left")
  57. tooltip: qsTr("The amount of empty space on the left of the graph.")
  58. Layout.fillWidth: true
  59. }
  60. SecondColumnLayout {
  61. SpinBox {
  62. backendValue: backendValues.marginLeft
  63. minimumValue: 0.0
  64. maximumValue: 9999.0
  65. stepSize: 1.0
  66. decimals: 1
  67. Layout.fillWidth: true
  68. }
  69. }
  70. Label {
  71. text: qsTr("Right")
  72. tooltip: qsTr("The amount of empty space on the right of the graph.")
  73. Layout.fillWidth: true
  74. }
  75. SecondColumnLayout {
  76. SpinBox {
  77. backendValue: backendValues.marginRight
  78. minimumValue: 0.0
  79. maximumValue: 9999.0
  80. stepSize: 1.0
  81. decimals: 1
  82. Layout.fillWidth: true
  83. }
  84. }
  85. }
  86. }
  87. }