SidebarContents.qml 920 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright (c) 2016 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.7
  4. import QtQuick.Controls 1.1
  5. import QtQuick.Controls.Styles 1.1
  6. import QtQuick.Layouts 1.1
  7. import UM 1.2 as UM
  8. import Cura 1.0 as Cura
  9. StackView
  10. {
  11. id: sidebarContents
  12. delegate: StackViewDelegate
  13. {
  14. function transitionFinished(properties)
  15. {
  16. properties.exitItem.opacity = 1
  17. }
  18. pushTransition: StackViewTransition
  19. {
  20. PropertyAnimation
  21. {
  22. target: enterItem
  23. property: "opacity"
  24. from: 0
  25. to: 1
  26. duration: 100
  27. }
  28. PropertyAnimation
  29. {
  30. target: exitItem
  31. property: "opacity"
  32. from: 1
  33. to: 0
  34. duration: 100
  35. }
  36. }
  37. }
  38. }