PointLightSection.qml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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("Point Light")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Constant Fade")
  13. tooltip: qsTr("Sets the constant attenuation of the light.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: 0
  18. maximumValue: 10
  19. decimals: 2
  20. stepSize: 0.1
  21. backendValue: backendValues.constantFade
  22. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  23. + StudioTheme.Values.actionIndicatorWidth
  24. }
  25. ExpandingSpacer {}
  26. }
  27. PropertyLabel {
  28. text: qsTr("Linear Fade")
  29. tooltip: qsTr("Sets the linear attenuation of the light.")
  30. }
  31. SecondColumnLayout {
  32. SpinBox {
  33. minimumValue: 0
  34. maximumValue: 10
  35. decimals: 2
  36. stepSize: 0.1
  37. backendValue: backendValues.linearFade
  38. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  39. + StudioTheme.Values.actionIndicatorWidth
  40. }
  41. ExpandingSpacer {}
  42. }
  43. PropertyLabel {
  44. text: qsTr("Quadratic Fade")
  45. tooltip: qsTr("Sets the quadratic attenuation of the light.")
  46. }
  47. SecondColumnLayout {
  48. SpinBox {
  49. minimumValue: 0
  50. maximumValue: 10
  51. decimals: 2
  52. stepSize: 0.1
  53. backendValue: backendValues.quadraticFade
  54. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  55. + StudioTheme.Values.actionIndicatorWidth
  56. }
  57. ExpandingSpacer {}
  58. }
  59. }
  60. }