ToolboxViewInstalled.qml 898 B

123456789101112131415161718192021222324252627282930313233
  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.Window 2.2
  6. import QtQuick.Controls 1.4
  7. import QtQuick.Controls.Styles 1.4
  8. // TODO: Switch to QtQuick.Controls 2.x and remove QtQuick.Controls.Styles
  9. import UM 1.1 as UM
  10. ScrollView
  11. {
  12. anchors.fill: parent
  13. ListView
  14. {
  15. id: pluginList
  16. property var activePlugin
  17. property var filter: "installed"
  18. anchors
  19. {
  20. fill: parent
  21. topMargin: UM.Theme.getSize("default_margin").height
  22. bottomMargin: UM.Theme.getSize("default_margin").height
  23. leftMargin: UM.Theme.getSize("default_margin").width
  24. rightMargin: UM.Theme.getSize("default_margin").width
  25. }
  26. model: manager.pluginsModel
  27. delegate: PluginEntry {}
  28. }
  29. }