PreviewMain.qml 798 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (c) 2019 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.4
  4. import QtQuick.Controls 1.2
  5. import QtQuick.Layouts 1.1
  6. import QtQuick.Controls.Styles 1.1
  7. import UM 1.0 as UM
  8. import Cura 1.0 as Cura
  9. Item
  10. {
  11. Loader
  12. {
  13. id: previewMain
  14. anchors.fill: parent
  15. source: UM.Controller.activeView != null && UM.Controller.activeView.mainComponent != null ? UM.Controller.activeView.mainComponent : ""
  16. }
  17. Cura.ActionPanelWidget
  18. {
  19. id: actionPanelWidget
  20. anchors.right: parent.right
  21. anchors.bottom: parent.bottom
  22. anchors.rightMargin: UM.Theme.getSize("thick_margin").width
  23. anchors.bottomMargin: UM.Theme.getSize("thick_margin").height
  24. hasPreviewButton: false
  25. }
  26. }