DebugViewSection.qml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright (C) 2022 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. Column {
  8. width: parent.width
  9. Section {
  10. width: parent.width
  11. caption: qsTr("Debug View")
  12. SectionLayout {
  13. PropertyLabel {
  14. text: qsTr("Source View")
  15. tooltip: qsTr("Sets the source View3D item to show render statistics for.")
  16. }
  17. SecondColumnLayout {
  18. ItemFilterComboBox {
  19. typeFilter: "QtQuick3D.View3D"
  20. backendValue: backendValues.source
  21. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("Detailed Mode")
  28. tooltip: qsTr("Enables detailed mode, which shows more detailed resource usage statistics.")
  29. }
  30. SecondColumnLayout {
  31. CheckBox {
  32. text: backendValues.resourceDetailsVisible.valueToString
  33. backendValue: backendValues.resourceDetailsVisible
  34. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  35. + StudioTheme.Values.actionIndicatorWidth
  36. }
  37. ExpandingSpacer {}
  38. }
  39. }
  40. }
  41. }