ToolboxDetailList.qml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright (c) 2019 Ultimaker B.V.
  2. // Toolbox is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 2.3
  5. import UM 1.1 as UM
  6. Item
  7. {
  8. id: detailList
  9. ScrollView
  10. {
  11. clip: true
  12. anchors.fill: detailList
  13. Column
  14. {
  15. anchors
  16. {
  17. right: parent.right
  18. topMargin: UM.Theme.getSize("wide_margin").height
  19. bottomMargin: UM.Theme.getSize("wide_margin").height
  20. top: parent.top
  21. }
  22. height: childrenRect.height + 2 * UM.Theme.getSize("wide_margin").height
  23. spacing: UM.Theme.getSize("default_margin").height
  24. Repeater
  25. {
  26. model: toolbox.packagesModel
  27. delegate: Loader
  28. {
  29. // FIXME: When using asynchronous loading, on Mac and Windows, the tile may fail to load complete,
  30. // leaving an empty space below the title part. We turn it off for now to make it work on Mac and
  31. // Windows.
  32. // Can be related to this QT bug: https://bugreports.qt.io/browse/QTBUG-50992
  33. asynchronous: false
  34. source: "ToolboxDetailTile.qml"
  35. }
  36. }
  37. }
  38. }
  39. }