AutoConfiguration.qml 881 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.7
  4. import QtQuick.Controls 2.0
  5. import UM 1.5 as UM
  6. import Cura 1.0 as Cura
  7. Item
  8. {
  9. width: parent.width
  10. height: childrenRect.height
  11. UM.Label
  12. {
  13. id: header
  14. text: catalog.i18nc("@header", "Configurations")
  15. font: UM.Theme.getFont("medium")
  16. color: UM.Theme.getColor("small_button_text")
  17. height: contentHeight
  18. anchors
  19. {
  20. left: parent.left
  21. right: parent.right
  22. }
  23. }
  24. ConfigurationListView
  25. {
  26. anchors.top: header.bottom
  27. anchors.topMargin: UM.Theme.getSize("default_margin").width
  28. width: parent.width
  29. outputDevice: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null
  30. }
  31. }