MorphTargetSection.qml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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("Morph Target")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Weight")
  13. tooltip: qsTr("Sets the weight of the current morph target.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: -9999999
  18. maximumValue: 9999999
  19. decimals: 2
  20. backendValue: backendValues.weight
  21. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("Attributes")
  28. tooltip: qsTr("Sets the set of attributes of the current morph target.")
  29. }
  30. SecondColumnLayout {
  31. ComboBox {
  32. scope: "MorphTarget"
  33. model: ["Position", "Normal", "Tangent", "Binormal"]
  34. backendValue: backendValues.attributes
  35. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  36. + StudioTheme.Values.actionIndicatorWidth
  37. }
  38. ExpandingSpacer {}
  39. }
  40. }
  41. }