Browse Source

Small changes

Animal 3 years ago
parent
commit
406493fc27
1 changed files with 7 additions and 7 deletions
  1. 7 7
      main.qml

+ 7 - 7
main.qml

@@ -16,6 +16,7 @@ Window {
         property var images: []
     }
 
+
     Item{
         id: source
         width:  parent.width
@@ -40,10 +41,10 @@ Window {
             id: moveAnimation
             running: true
             loops: Animation.Infinite
-            PropertyAnimation{target: rect; property: "x"; from: 10; to: source.width - rect.width - 10; duration: 1000}
-            PropertyAnimation{target: rect; property: "y"; from: 10; to: source.height - rect.height - 10; duration: 1000/*; easing.type: Easing.OutCirc*/}
-            PropertyAnimation{target: rect; property: "x"; from: source.width - rect.width - 10; to: 10; duration: 1000/*; easing.type: Easing.OutCirc*/}
-            PropertyAnimation{target: rect; property: "y"; from: source.height - rect.height - 10; to: 0; duration: 1000/*; easing.type: Easing.OutCirc*/}
+            PropertyAnimation{target: rect; property: "x"; to: source.width - rect.width - 10; duration: 2000}
+            PropertyAnimation{target: rect; property: "y"; to: source.height - rect.height - 10; duration: 2000/*; easing.type: Easing.OutCirc*/}
+            PropertyAnimation{target: rect; property: "x"; to: 10; duration: 2000/*; easing.type: Easing.OutCirc*/}
+            PropertyAnimation{target: rect; property: "y"; to: 0; duration: 2000/*; easing.type: Easing.OutCirc*/}
         }
 
 
@@ -140,9 +141,9 @@ Window {
         repeat: true
         running: true
         onTriggered: {
-//            sourceShader.save()
+    //            sourceShader.save()
             source.grabToImage(function(result) {
-//                            d.images.push(result)
+                            d.images.push(result)
                         })
         }
     }
@@ -160,6 +161,5 @@ Window {
             if(current > d.images.length) current = 0
             img.source = d.images[current++].url
         }
-
     }
 }