ParticleModelShape3DSection.qml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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("Particle Model Shape")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Fill")
  13. tooltip: qsTr("Sets if the shape should be filled or just use the shape outlines.")
  14. }
  15. SecondColumnLayout {
  16. CheckBox {
  17. id: fillCheckBox
  18. text: backendValues.fill.valueToString
  19. backendValue: backendValues.fill
  20. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  21. + StudioTheme.Values.actionIndicatorWidth
  22. }
  23. ExpandingSpacer {}
  24. }
  25. PropertyLabel {
  26. text: qsTr("Delegate")
  27. tooltip: qsTr("The delegate provides a template defining the model for the ParticleModelShape3D.")
  28. }
  29. SecondColumnLayout {
  30. ItemFilterComboBox {
  31. typeFilter: "Component"
  32. backendValue: backendValues.delegate
  33. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  34. + StudioTheme.Values.actionIndicatorWidth
  35. }
  36. ExpandingSpacer {}
  37. }
  38. }
  39. }