DebugSettingsSection.qml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. Section {
  8. caption: qsTr("Debug Settings")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Enable Wireframe")
  13. tooltip: qsTr("Meshes will be rendered as wireframes.")
  14. }
  15. SecondColumnLayout {
  16. CheckBox {
  17. text: backendValues.wireframeEnabled.valueToString
  18. backendValue: backendValues.wireframeEnabled
  19. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  20. + StudioTheme.Values.actionIndicatorWidth
  21. }
  22. ExpandingSpacer {}
  23. }
  24. PropertyLabel {
  25. text: qsTr("Override Mode")
  26. tooltip: qsTr("Changes how all materials are rendered to only reflect a particular aspect of the overall rendering process")
  27. }
  28. SecondColumnLayout {
  29. ComboBox {
  30. id: backgroundModeComboBox
  31. scope: "DebugSettings"
  32. model: ["None", "BaseColor", "Roughness", "Metalness", "Diffuse", "Specular", "ShadowOcclusion", "Emission", "AmbientOcclusion", "Normals", "Tangents", "Binormals", "FO"]
  33. backendValue: backendValues.materialOverride
  34. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  35. + StudioTheme.Values.actionIndicatorWidth
  36. }
  37. ExpandingSpacer {}
  38. }
  39. }
  40. }