ChartViewSpecifics.qml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // Copyright (C) 2016 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 2.0
  4. import HelperWidgets 2.0
  5. import QtQuick.Layouts 1.0
  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("Title")
  13. SectionLayout {
  14. rows: 1
  15. Label {
  16. text: qsTr("title")
  17. }
  18. SecondColumnLayout {
  19. LineEdit {
  20. backendValue: backendValues.title
  21. Layout.fillWidth: true
  22. }
  23. ExpandingSpacer {
  24. }
  25. }
  26. }
  27. }
  28. Section {
  29. anchors.left: parent.left
  30. anchors.right: parent.right
  31. caption: qsTr("Title Color")
  32. ColorEditor {
  33. caption: qsTr("titleColor")
  34. backendValue: backendValues.titleColor
  35. supportGradient: false
  36. }
  37. }
  38. Section {
  39. anchors.left: parent.left
  40. anchors.right: parent.right
  41. caption: qsTr("Background Color")
  42. ColorEditor {
  43. caption: qsTr("backgroundColor")
  44. backendValue: backendValues.backgroundColor
  45. supportGradient: false
  46. }
  47. }
  48. Section {
  49. anchors.left: parent.left
  50. anchors.right: parent.right
  51. caption: qsTr("Background")
  52. SectionLayout {
  53. rows: 2
  54. Label {
  55. text: qsTr("backgroundRoundness")
  56. tooltip: qsTr("Diameter of the rounding circle at the corners")
  57. Layout.fillWidth: true
  58. }
  59. SecondColumnLayout {
  60. SpinBox {
  61. backendValue: backendValues.backgroundRoundness
  62. minimumValue: 0.1
  63. maximumValue: 100.0
  64. stepSize: 0.1
  65. decimals: 1
  66. Layout.fillWidth: true
  67. }
  68. }
  69. Label {
  70. text: qsTr("dropShadowEnabled")
  71. tooltip: qsTr("Enable border drop shadow")
  72. Layout.fillWidth: true
  73. }
  74. SecondColumnLayout {
  75. CheckBox {
  76. backendValue: backendValues.dropShadowEnabled
  77. Layout.fillWidth: true
  78. }
  79. }
  80. }
  81. }
  82. Section {
  83. anchors.left: parent.left
  84. anchors.right: parent.right
  85. caption: qsTr("Fill Color")
  86. ColorEditor {
  87. caption: qsTr("fillColor")
  88. backendValue: backendValues.fillColor
  89. supportGradient: false
  90. }
  91. }
  92. Section {
  93. anchors.left: parent.left
  94. anchors.right: parent.right
  95. caption: qsTr("Plot Area Color")
  96. ColorEditor {
  97. caption: qsTr("plotAreaColor")
  98. backendValue: backendValues.plotAreaColor
  99. supportGradient: false
  100. }
  101. }
  102. Section {
  103. anchors.left: parent.left
  104. anchors.right: parent.right
  105. caption: qsTr("Localization")
  106. SectionLayout {
  107. rows: 1
  108. Label {
  109. text: qsTr("localizeNumbers")
  110. tooltip: qsTr("Localize numbers")
  111. Layout.fillWidth: true
  112. }
  113. SecondColumnLayout {
  114. CheckBox {
  115. backendValue: backendValues.localizeNumbers
  116. Layout.fillWidth: true
  117. }
  118. }
  119. }
  120. }
  121. }