SetUniformValueSection.qml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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("Set Uniform Value")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Target")
  13. tooltip: qsTr("Sets the name of the uniform to change value for a pass.")
  14. }
  15. SecondColumnLayout {
  16. LineEdit {
  17. backendValue: backendValues.target
  18. showTranslateCheckBox: false
  19. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  20. + StudioTheme.Values.actionIndicatorWidth
  21. width: implicitWidth
  22. }
  23. ExpandingSpacer {}
  24. }
  25. PropertyLabel {
  26. text: qsTr("Value")
  27. tooltip: qsTr("Sets the value of the uniform.")
  28. }
  29. SecondColumnLayout {
  30. LineEdit {
  31. backendValue: backendValues.value
  32. showTranslateCheckBox: false
  33. writeAsExpression: true
  34. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  35. + StudioTheme.Values.actionIndicatorWidth
  36. width: implicitWidth
  37. }
  38. ExpandingSpacer {}
  39. }
  40. }
  41. }