AutoConfiguration.qml 919 B

123456789101112131415161718192021222324252627282930313233343536373839
  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.3 as UM
  6. import Cura 1.0 as Cura
  7. Item
  8. {
  9. width: parent.width
  10. height: childrenRect.height
  11. 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. renderType: Text.NativeRendering
  19. anchors
  20. {
  21. left: parent.left
  22. right: parent.right
  23. }
  24. }
  25. ConfigurationListView
  26. {
  27. anchors.top: header.bottom
  28. anchors.topMargin: UM.Theme.getSize("default_margin").width
  29. width: parent.width
  30. outputDevice: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null
  31. }
  32. }