Repeller3DSection.qml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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("Particle Repeller")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Radius")
  13. tooltip: qsTr("Sets the radius of the effect.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: 0
  18. maximumValue: 999999
  19. decimals: 2
  20. backendValue: backendValues.radius
  21. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("Outer Radius")
  28. tooltip: qsTr("Sets the outer radius of the effect.")
  29. }
  30. SecondColumnLayout {
  31. SpinBox {
  32. minimumValue: 0
  33. maximumValue: 999999
  34. decimals: 2
  35. backendValue: backendValues.outerRadius
  36. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  37. + StudioTheme.Values.actionIndicatorWidth
  38. }
  39. ExpandingSpacer {}
  40. }
  41. PropertyLabel {
  42. text: qsTr("Strength")
  43. tooltip: qsTr("Sets the strength of the effect.")
  44. }
  45. SecondColumnLayout {
  46. SpinBox {
  47. minimumValue: 0
  48. maximumValue: 999999
  49. decimals: 2
  50. backendValue: backendValues.strength
  51. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  52. + StudioTheme.Values.actionIndicatorWidth
  53. }
  54. ExpandingSpacer {}
  55. }
  56. }
  57. }