EffectSection.qml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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("Effect")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Passes")
  13. tooltip: qsTr("Sets the render passes of the effect.")
  14. Layout.alignment: Qt.AlignTop
  15. Layout.topMargin: 5
  16. }
  17. SecondColumnLayout {
  18. EditableListView {
  19. backendValue: backendValues.passes
  20. model: backendValues.passes.expressionAsList
  21. Layout.fillWidth: true
  22. typeFilter: "QtQuick3D.Pass"
  23. onAdd: function(value) { backendValues.passes.idListAdd(value) }
  24. onRemove: function(idx) { backendValues.passes.idListRemove(idx) }
  25. onReplace: function (idx, value) { backendValues.passes.idListReplace(idx, value) }
  26. }
  27. ExpandingSpacer {}
  28. }
  29. }
  30. }