GraphsSection.qml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. // Copyright (C) 2023 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. Section {
  7. anchors.left: parent.left
  8. anchors.right: parent.right
  9. caption: qsTr("Graph")
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Render Mode")
  13. tooltip: qsTr("Rendering mode")
  14. Layout.fillWidth: true
  15. }
  16. SecondColumnLayout {
  17. ComboBox {
  18. backendValue: backendValues.renderingMode
  19. model: ["Indirect", "DirectToBackground"]
  20. Layout.fillWidth: true
  21. scope: "Graphs3D"
  22. }
  23. }
  24. PropertyLabel {
  25. text: qsTr("Shadow Quality")
  26. tooltip: qsTr("Quality and style of the shadows")
  27. Layout.fillWidth: true
  28. }
  29. SecondColumnLayout {
  30. ComboBox {
  31. backendValue: backendValues.shadowQuality
  32. model: ["None", "Low", "Medium",
  33. "High", "SoftLow", "SoftMedium",
  34. "SoftHigh"]
  35. Layout.fillWidth: true
  36. scope: "Graphs3D"
  37. }
  38. }
  39. PropertyLabel {
  40. text: qsTr("Optimization")
  41. tooltip: qsTr("Optimization hint")
  42. Layout.fillWidth: true
  43. }
  44. SecondColumnLayout {
  45. ComboBox {
  46. backendValue: backendValues.optimizationHint
  47. model: ["Default", "Legacy"]
  48. Layout.fillWidth: true
  49. scope: "Graphs3D"
  50. }
  51. }
  52. PropertyLabel {
  53. text: qsTr("MSAA")
  54. tooltip: qsTr("Multisample anti-aliasing sample count")
  55. Layout.fillWidth: true
  56. }
  57. SpinBox {
  58. backendValue: backendValues.msaaSamples
  59. minimumValue: 0
  60. maximumValue: 8
  61. Layout.fillWidth: true
  62. }
  63. PropertyLabel {
  64. text: qsTr("Aspect Ratio")
  65. tooltip: qsTr("Horizontal to vertical aspect ratio")
  66. Layout.fillWidth: true
  67. }
  68. SecondColumnLayout {
  69. SpinBox {
  70. backendValue: backendValues.aspectRatio
  71. minimumValue: 0.1
  72. maximumValue: 10.0
  73. stepSize: 0.1
  74. decimals: 1
  75. Layout.fillWidth: true
  76. }
  77. }
  78. PropertyLabel {
  79. text: qsTr("Horizontal AR")
  80. tooltip: qsTr("Horizontal aspect ratio")
  81. Layout.fillWidth: true
  82. }
  83. SecondColumnLayout {
  84. SpinBox {
  85. backendValue: backendValues.horizontalAspectRatio
  86. minimumValue: 0.1
  87. maximumValue: 10.0
  88. stepSize: 0.1
  89. decimals: 1
  90. Layout.fillWidth: true
  91. }
  92. }
  93. PropertyLabel {
  94. text: qsTr("Margin")
  95. tooltip: qsTr("Graph background margin")
  96. Layout.fillWidth: true
  97. }
  98. SecondColumnLayout {
  99. SpinBox {
  100. backendValue: backendValues.margin
  101. minimumValue: -1.0
  102. maximumValue: 100.0
  103. stepSize: 0.1
  104. decimals: 1
  105. Layout.fillWidth: true
  106. }
  107. }
  108. PropertyLabel {
  109. text: qsTr("Measure FPS")
  110. tooltip: qsTr("Measure rendering speed as Frames Per Second")
  111. Layout.fillWidth: true
  112. }
  113. SecondColumnLayout {
  114. CheckBox {
  115. backendValue: backendValues.measureFps
  116. Layout.fillWidth: true
  117. }
  118. }
  119. }
  120. }