Advertisement
Guest User

Untitled

a guest
Nov 9th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function myRotate(obj) {
  2. var correction = obj.width / 2 - obj.height / 2
  3. var w = obj.width
  4.  
  5. obj.rotation = -90
  6. obj.width = obj.height
  7. obj.height = w
  8. obj.x = correction
  9. obj.y = -correction
  10. }
  11.  
  12. onParentChanged: myRotate(desktop.parent)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement