ToolboxDetailList.qml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Toolbox is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.7
  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. flickableItem.flickableDirection: Flickable.VerticalFlick
  16. Column
  17. {
  18. anchors
  19. {
  20. right: parent.right
  21. topMargin: UM.Theme.getSize("wide_margin").height
  22. bottomMargin: UM.Theme.getSize("wide_margin").height
  23. top: parent.top
  24. }
  25. height: childrenRect.height + 2 * UM.Theme.getSize("wide_margin").height
  26. spacing: UM.Theme.getSize("default_margin").height
  27. Repeater
  28. {
  29. model: toolbox.packagesModel
  30. delegate: Loader
  31. {
  32. // FIXME: When using asynchronous loading, on Mac and Windows, the tile may fail to load complete,
  33. // leaving an empty space below the title part. We turn it off for now to make it work on Mac and
  34. // Windows.
  35. // Can be related to this QT bug: https://bugreports.qt.io/browse/QTBUG-50992
  36. asynchronous: false
  37. source: "ToolboxDetailTile.qml"
  38. }
  39. }
  40. }
  41. }
  42. }