TiltShiftSection.qml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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("Tilt Shift")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Focus Position")
  13. tooltip: qsTr("Set the focus position.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: 0
  18. maximumValue: 1
  19. decimals: 2
  20. stepSize: 0.1
  21. backendValue: backendValues.focusPosition
  22. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  23. + StudioTheme.Values.actionIndicatorWidth
  24. }
  25. ExpandingSpacer {}
  26. }
  27. PropertyLabel {
  28. text: qsTr("Focus Width")
  29. tooltip: qsTr("Set the focus width.")
  30. }
  31. SecondColumnLayout {
  32. SpinBox {
  33. minimumValue: 0
  34. maximumValue: 1
  35. decimals: 2
  36. stepSize: 0.1
  37. backendValue: backendValues.focusWidth
  38. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  39. + StudioTheme.Values.actionIndicatorWidth
  40. }
  41. ExpandingSpacer {}
  42. }
  43. PropertyLabel {
  44. text: qsTr("Blur Amount")
  45. tooltip: qsTr("Set the blur amount.")
  46. }
  47. SecondColumnLayout {
  48. SpinBox {
  49. minimumValue: 0
  50. maximumValue: 10
  51. decimals: 2
  52. backendValue: backendValues.blurAmount
  53. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  54. + StudioTheme.Values.actionIndicatorWidth
  55. }
  56. ExpandingSpacer {}
  57. }
  58. PropertyLabel {
  59. text: qsTr("Vertical")
  60. tooltip: qsTr("Specifies if the tilt shift is vertical.")
  61. }
  62. SecondColumnLayout {
  63. CheckBox {
  64. text: backendValues.isVertical.valueToString
  65. backendValue: backendValues.isVertical
  66. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  67. + StudioTheme.Values.actionIndicatorWidth
  68. }
  69. ExpandingSpacer {}
  70. }
  71. PropertyLabel {
  72. text: qsTr("Inverted")
  73. tooltip: qsTr("Specifies if the tilt shift is inverted.")
  74. }
  75. SecondColumnLayout {
  76. CheckBox {
  77. text: backendValues.isInverted.valueToString
  78. backendValue: backendValues.isInverted
  79. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  80. + StudioTheme.Values.actionIndicatorWidth
  81. }
  82. ExpandingSpacer {}
  83. }
  84. }
  85. }