AccountDetails.qml 757 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Cura 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.4 as UM
  6. import Cura 1.1 as Cura
  7. Column
  8. {
  9. property var profile: null
  10. property var loggedIn: false
  11. property var profileImage: ""
  12. padding: UM.Theme.getSize("wide_margin").height
  13. spacing: UM.Theme.getSize("wide_margin").height
  14. Loader
  15. {
  16. id: accountOperations
  17. anchors.horizontalCenter: parent.horizontalCenter
  18. sourceComponent: loggedIn ? userOperations : generalOperations
  19. }
  20. Component
  21. {
  22. id: userOperations
  23. UserOperations { }
  24. }
  25. Component
  26. {
  27. id: generalOperations
  28. GeneralOperations { }
  29. }
  30. }