ChartViewSpecifics.qml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /****************************************************************************
  2. **
  3. ** Copyright (C) 2016 The Qt Company Ltd.
  4. ** Contact: https://www.qt.io/licensing/
  5. **
  6. ** This file is part of the Qt Charts module of the Qt Toolkit.
  7. **
  8. ** $QT_BEGIN_LICENSE:GPL$
  9. ** Commercial License Usage
  10. ** Licensees holding valid commercial Qt licenses may use this file in
  11. ** accordance with the commercial license agreement provided with the
  12. ** Software or, alternatively, in accordance with the terms contained in
  13. ** a written agreement between you and The Qt Company. For licensing terms
  14. ** and conditions see https://www.qt.io/terms-conditions. For further
  15. ** information use the contact form at https://www.qt.io/contact-us.
  16. **
  17. ** GNU General Public License Usage
  18. ** Alternatively, this file may be used under the terms of the GNU
  19. ** General Public License version 3 or (at your option) any later version
  20. ** approved by the KDE Free Qt Foundation. The licenses are as published by
  21. ** the Free Software Foundation and appearing in the file LICENSE.GPL3
  22. ** included in the packaging of this file. Please review the following
  23. ** information to ensure the GNU General Public License requirements will
  24. ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
  25. **
  26. ** $QT_END_LICENSE$
  27. **
  28. ****************************************************************************/
  29. import QtQuick 2.0
  30. import HelperWidgets 2.0
  31. import QtQuick.Layouts 1.0
  32. Column {
  33. anchors.left: parent.left
  34. anchors.right: parent.right
  35. Section {
  36. anchors.left: parent.left
  37. anchors.right: parent.right
  38. caption: qsTr("Title")
  39. SectionLayout {
  40. rows: 1
  41. Label {
  42. text: qsTr("title")
  43. }
  44. SecondColumnLayout {
  45. LineEdit {
  46. backendValue: backendValues.title
  47. Layout.fillWidth: true
  48. }
  49. ExpandingSpacer {
  50. }
  51. }
  52. }
  53. }
  54. Section {
  55. anchors.left: parent.left
  56. anchors.right: parent.right
  57. caption: qsTr("Title Color")
  58. ColorEditor {
  59. caption: qsTr("titleColor")
  60. backendValue: backendValues.titleColor
  61. supportGradient: false
  62. }
  63. }
  64. Section {
  65. anchors.left: parent.left
  66. anchors.right: parent.right
  67. caption: qsTr("Background Color")
  68. ColorEditor {
  69. caption: qsTr("backgroundColor")
  70. backendValue: backendValues.backgroundColor
  71. supportGradient: false
  72. }
  73. }
  74. Section {
  75. anchors.left: parent.left
  76. anchors.right: parent.right
  77. caption: qsTr("Background")
  78. SectionLayout {
  79. rows: 2
  80. Label {
  81. text: qsTr("backgroundRoundness")
  82. tooltip: qsTr("Diameter of the rounding circle at the corners")
  83. Layout.fillWidth: true
  84. }
  85. SecondColumnLayout {
  86. SpinBox {
  87. backendValue: backendValues.backgroundRoundness
  88. minimumValue: 0.1
  89. maximumValue: 100.0
  90. stepSize: 0.1
  91. decimals: 1
  92. Layout.fillWidth: true
  93. }
  94. }
  95. Label {
  96. text: qsTr("dropShadowEnabled")
  97. tooltip: qsTr("Enable border drop shadow")
  98. Layout.fillWidth: true
  99. }
  100. SecondColumnLayout {
  101. CheckBox {
  102. backendValue: backendValues.dropShadowEnabled
  103. Layout.fillWidth: true
  104. }
  105. }
  106. }
  107. }
  108. Section {
  109. anchors.left: parent.left
  110. anchors.right: parent.right
  111. caption: qsTr("Fill Color")
  112. ColorEditor {
  113. caption: qsTr("fillColor")
  114. backendValue: backendValues.fillColor
  115. supportGradient: false
  116. }
  117. }
  118. Section {
  119. anchors.left: parent.left
  120. anchors.right: parent.right
  121. caption: qsTr("Plot Area Color")
  122. ColorEditor {
  123. caption: qsTr("plotAreaColor")
  124. backendValue: backendValues.plotAreaColor
  125. supportGradient: false
  126. }
  127. }
  128. Section {
  129. anchors.left: parent.left
  130. anchors.right: parent.right
  131. caption: qsTr("Localization")
  132. SectionLayout {
  133. rows: 1
  134. Label {
  135. text: qsTr("localizeNumbers")
  136. tooltip: qsTr("Localize numbers")
  137. Layout.fillWidth: true
  138. }
  139. SecondColumnLayout {
  140. CheckBox {
  141. backendValue: backendValues.localizeNumbers
  142. Layout.fillWidth: true
  143. }
  144. }
  145. }
  146. }
  147. }