logsui/logsapp/src/logseffecthandler.cpp
changeset 16 c5af8598d22c
parent 11 64a47b97e1e1
child 21 2f0af9ba7665
--- a/logsui/logsapp/src/logseffecthandler.cpp	Wed Aug 18 09:49:12 2010 +0300
+++ b/logsui/logsapp/src/logseffecthandler.cpp	Thu Sep 02 20:27:05 2010 +0300
@@ -23,7 +23,7 @@
 #include <QSequentialAnimationGroup>
 #include <hbinstance.h>
 
-const int logsMoveByExtra = 20;
+const int logsMoveByExtra = 10;
 const int logsEffectDelayBetween = 200;
 const int logsEffectAppearDurationInMs = 500;
 const int logsEffectDissappearDurationInMs = 300;
@@ -104,8 +104,10 @@
 void LogsEffectHandler::moveAnimationChanged(QAbstractAnimation *currentAnimation)
 {
     int indexOfAnimation = mMoveGroup->indexOfAnimation(currentAnimation);
-    if (indexOfAnimation == logsPauseBetweenDissappearAndAppearIndex ) {
+    if (indexOfAnimation == logsPauseBetweenDissappearAndAppearIndex ) {    
         emit dissappearByMovingComplete();
+    } else if (indexOfAnimation == logsAppearByMovingIndex ) {
+        emit appearStarting();
     }
 }
 
@@ -205,13 +207,13 @@
     LOGS_QDEBUG( "logs [UI] -> LogsEffectHandler::startAppearByMovingEffect()" );
     
     Q_ASSERT(!hbInstance->allMainWindows().isEmpty());   
-    int moveBy = hbInstance->allMainWindows().at(0)->layoutRect().width() + logsMoveByExtra; 
+    int moveBy = hbInstance->allMainWindows().at(0)->layoutRect().width() - logsMoveByExtra; 
     int startPos = appearFromLeft ? -moveBy : moveBy;
     QEasingCurve easing(QEasingCurve::OutQuad); // decelerating
     initMoveHorizontallyEffect(
             animation, effectTarget, startPos, origX,
             logsEffectAppearDurationInMs, easing);
-    
+
     LOGS_QDEBUG( "logs [UI] <- LogsEffectHandler::startAppearByMovingEffect()" );
 }