aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick3d/designer/EffectSection.qml
blob: 48c8775f7a802c3f10d21262eb2e2a1382078131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick 2.15
import QtQuick.Layouts 1.15
import HelperWidgets 2.0
import StudioTheme 1.0 as StudioTheme

Section {
    caption: qsTr("Effect")
    width: parent.width

    SectionLayout {
        PropertyLabel {
            text: qsTr("Passes")
            tooltip: qsTr("Sets the render passes of the effect.")
            Layout.alignment: Qt.AlignTop
            Layout.topMargin: 5
        }

        SecondColumnLayout {
            EditableListView {
                backendValue: backendValues.passes
                model: backendValues.passes.expressionAsList
                Layout.fillWidth: true
                typeFilter: "QtQuick3D.Pass"

                onAdd: function(value) { backendValues.passes.idListAdd(value) }
                onRemove: function(idx) { backendValues.passes.idListRemove(idx) }
                onReplace: function (idx, value) { backendValues.passes.idListReplace(idx, value) }
            }

            ExpandingSpacer {}
        }
    }
}