JointSection.qml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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("Joint")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Index")
  13. tooltip: qsTr("Sets the index of this joint.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: -9999999
  18. maximumValue: 9999999
  19. decimals: 0
  20. backendValue: backendValues.index
  21. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("Skeleton Root")
  28. tooltip: qsTr("Sets the skeleton that contains this joint.")
  29. }
  30. SecondColumnLayout {
  31. ItemFilterComboBox {
  32. typeFilter: "QtQuick3D.Skeleton"
  33. backendValue: backendValues.skeletonRoot
  34. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  35. + StudioTheme.Values.actionIndicatorWidth
  36. }
  37. ExpandingSpacer {}
  38. }
  39. }
  40. }