Loader3DSection.qml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Copyright (C) 2021 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("Loader3D")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Active")
  13. tooltip: qsTr("Sets if the Loader3D is currently active.")
  14. }
  15. SecondColumnLayout {
  16. CheckBox {
  17. text: backendValues.active.valueToString
  18. backendValue: backendValues.active
  19. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  20. + StudioTheme.Values.actionIndicatorWidth
  21. }
  22. ExpandingSpacer {}
  23. }
  24. PropertyLabel {
  25. text: qsTr("Source")
  26. tooltip: qsTr("Sets the URL of the QML component to instantiate.")
  27. }
  28. SecondColumnLayout {
  29. UrlChooser {
  30. filter: "*.qml"
  31. backendValue: backendValues.source
  32. }
  33. ExpandingSpacer {}
  34. }
  35. PropertyLabel {
  36. text: qsTr("Source Component")
  37. tooltip: qsTr("Sets the component to instantiate.")
  38. }
  39. SecondColumnLayout {
  40. ItemFilterComboBox {
  41. typeFilter: "Component"
  42. backendValue: backendValues.sourceComponent
  43. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  44. + StudioTheme.Values.actionIndicatorWidth
  45. }
  46. ExpandingSpacer {}
  47. }
  48. PropertyLabel {
  49. text: qsTr("Asynchronous")
  50. tooltip: qsTr("Sets whether the component will be instantiated asynchronously.")
  51. }
  52. SecondColumnLayout {
  53. CheckBox {
  54. text: backendValues.asynchronous.valueToString
  55. backendValue: backendValues.asynchronous
  56. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  57. + StudioTheme.Values.actionIndicatorWidth
  58. }
  59. ExpandingSpacer {}
  60. }
  61. }
  62. }