WorkspaceRow.qml 759 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2022 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 2.3
  5. import QtQuick.Layouts 1.3
  6. import QtQuick.Window 2.2
  7. import UM 1.5 as UM
  8. import Cura 1.1 as Cura
  9. Row
  10. {
  11. property alias leftLabelText: leftLabel.text
  12. property alias rightLabelText: rightLabel.text
  13. width: parent.width
  14. height: visible ? childrenRect.height : 0
  15. UM.Label
  16. {
  17. id: leftLabel
  18. text: catalog.i18nc("@action:label", "Type")
  19. width: Math.round(parent.width / 4)
  20. wrapMode: Text.WordWrap
  21. }
  22. UM.Label
  23. {
  24. id: rightLabel
  25. text: manager.machineType
  26. width: Math.round(parent.width / 3)
  27. wrapMode: Text.WordWrap
  28. }
  29. }