CapsuleShapeSection.qml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright (C) 2023 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("Capsule Shape")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Diameter")
  13. tooltip: qsTr("Sets the diameter of the capsule.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: 0
  18. maximumValue: 9999999
  19. decimals: 3
  20. backendValue: backendValues.diameter
  21. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("Height")
  28. tooltip: qsTr("Sets the height of the capsule.")
  29. }
  30. SecondColumnLayout {
  31. SpinBox {
  32. minimumValue: 0
  33. maximumValue: 9999999
  34. decimals: 3
  35. backendValue: backendValues.height
  36. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  37. + StudioTheme.Values.actionIndicatorWidth
  38. }
  39. ExpandingSpacer {}
  40. }
  41. }
  42. }