ChromaticAberrationSection.qml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. Column {
  8. width: parent.width
  9. Section {
  10. caption: qsTr("Mask")
  11. width: parent.width
  12. SectionLayout {
  13. PropertyLabel {
  14. text: qsTr("Mask Texture")
  15. tooltip: qsTr("Defines a texture for mask.")
  16. }
  17. SecondColumnLayout {
  18. ItemFilterComboBox {
  19. typeFilter: "QtQuick3D.Texture"
  20. backendValue: backendValues.maskTexture_texture
  21. defaultItem: qsTr("Default")
  22. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  23. + StudioTheme.Values.actionIndicatorWidth
  24. }
  25. ExpandingSpacer {}
  26. }
  27. }
  28. }
  29. Section {
  30. caption: qsTr("Aberration")
  31. width: parent.width
  32. SectionLayout {
  33. PropertyLabel {
  34. text: qsTr("Amount")
  35. tooltip: qsTr("Amount of aberration.")
  36. }
  37. SecondColumnLayout {
  38. SpinBox {
  39. minimumValue: -1000
  40. maximumValue: 1000
  41. decimals: 0
  42. backendValue: backendValues.aberrationAmount
  43. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  44. + StudioTheme.Values.actionIndicatorWidth
  45. }
  46. ExpandingSpacer {}
  47. }
  48. PropertyLabel {
  49. text: qsTr("Focus Depth")
  50. tooltip: qsTr("Focus depth of the aberration.")
  51. }
  52. SecondColumnLayout {
  53. SpinBox {
  54. minimumValue: 0
  55. maximumValue: 10000
  56. decimals: 0
  57. backendValue: backendValues.focusDepth
  58. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  59. + StudioTheme.Values.actionIndicatorWidth
  60. }
  61. ExpandingSpacer {}
  62. }
  63. }
  64. }
  65. }