ToolboxViewDownloads.qml 1017 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // PluginBrowser is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Dialogs 1.1
  5. import QtQuick.Controls 1.4
  6. import QtQuick.Controls.Styles 1.4
  7. import UM 1.1 as UM
  8. // TODO: Switch to QtQuick.Controls 2.x and remove QtQuick.Controls.Styles
  9. ScrollView
  10. {
  11. id: base
  12. frameVisible: false
  13. anchors.fill: parent
  14. style: UM.Theme.styles.scrollview
  15. Column
  16. {
  17. width: base.width
  18. spacing: UM.Theme.getSize("base_unit").height
  19. height: childrenRect.height
  20. anchors
  21. {
  22. fill: parent
  23. topMargin: UM.Theme.getSize("base_unit").height
  24. bottomMargin: UM.Theme.getSize("base_unit").height
  25. leftMargin: UM.Theme.getSize("base_unit").width * 2
  26. rightMargin: UM.Theme.getSize("base_unit").width * 2
  27. }
  28. ToolboxShowcase
  29. {
  30. id: showcase
  31. }
  32. ToolboxGrid
  33. {
  34. id: allPlugins
  35. }
  36. }
  37. }