Advertisement
Guest User

main.qml.patch

a guest
Jul 30th, 2015
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. --- main.qml 2015-07-30 22:06:43.973819787 +0200
  2. +++ main_workaround.qml 2015-07-30 22:37:43.749425216 +0200
  3. @@ -49,7 +49,6 @@
  4. //private
  5. function fadeWallpaper() {
  6. if (!ready && width > 0 && height > 0) { // shell startup, setup immediately
  7. - currentImage.sourceSize = Qt.size(root.width, root.height)
  8. currentImage.source = modelImage
  9.  
  10. ready = true
  11. @@ -59,7 +58,6 @@
  12. fadeAnim.running = false
  13. swapImages()
  14. currentImage.source = modelImage
  15. - currentImage.sourceSize = Qt.size(root.width, root.height)
  16. // Prevent source size change when image has just been setup anyway
  17. sourceSizeTimer.stop()
  18. currentImage.opacity = 0
  19. @@ -74,7 +72,6 @@
  20. function fadeFillMode() {
  21. fadeAnim.running = false
  22. swapImages()
  23. - currentImage.sourceSize = otherImage.sourceSize
  24. sourceSizeTimer.stop()
  25. currentImage.source = modelImage
  26. currentImage.opacity = 0
  27. @@ -87,13 +84,10 @@
  28. }
  29.  
  30. function fadeSourceSize() {
  31. - if (currentImage.sourceSize === Qt.size(root.width, root.height)) {
  32. return
  33. - }
  34.  
  35. fadeAnim.running = false
  36. swapImages()
  37. - currentImage.sourceSize = Qt.size(root.width, root.height)
  38. currentImage.opacity = 0
  39. currentImage.source = otherImage.source
  40. otherImage.z = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement