ToolboxDetailList.qml 938 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Toolbox is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 1.4
  5. import QtQuick.Controls.Styles 1.4
  6. import UM 1.1 as UM
  7. Item
  8. {
  9. id: detailList
  10. ScrollView
  11. {
  12. frameVisible: false
  13. anchors.fill: detailList
  14. style: UM.Theme.styles.scrollview
  15. Column
  16. {
  17. anchors
  18. {
  19. right: parent.right
  20. topMargin: UM.Theme.getSize("wide_margin").height
  21. bottomMargin: UM.Theme.getSize("wide_margin").height
  22. top: parent.top
  23. }
  24. height: childrenRect.height + 2 * UM.Theme.getSize("wide_margin").height
  25. spacing: UM.Theme.getSize("default_margin").height
  26. Repeater
  27. {
  28. model: toolbox.packagesModel
  29. delegate: ToolboxDetailTile {}
  30. }
  31. }
  32. }
  33. }