QTfrontend/hwform.cpp
changeset 6791 6907194f2c57
parent 6735 050237b1500f
child 6793 d62f25f5d6ce
equal deleted inserted replaced
6790:e688db01bc9c 6791:6907194f2c57
   636         int duration = config->isFrontendEffects() ? 500 : 0;
   636         int duration = config->isFrontendEffects() ? 500 : 0;
   637 
   637 
   638         //New page animation
   638         //New page animation
   639         animationNewSlide = new QPropertyAnimation(ui.Pages->widget(id), "pos");
   639         animationNewSlide = new QPropertyAnimation(ui.Pages->widget(id), "pos");
   640         animationNewSlide->setDuration(duration);
   640         animationNewSlide->setDuration(duration);
   641         animationNewSlide->setStartValue(QPoint(width()/coeff, 0));
   641         animationNewSlide->setStartValue(QPoint(20000/coeff, 0));
   642         animationNewSlide->setEndValue(QPoint(0, 0));
   642         animationNewSlide->setEndValue(QPoint(0, 0));
   643         animationNewSlide->setEasingCurve(QEasingCurve::OutExpo);
   643         animationNewSlide->setEasingCurve(QEasingCurve::OutExpo);
   644 
   644 
   645 #ifdef false
   645 #ifdef false
   646         animationNewOpacity = new QPropertyAnimation(effectNew, "opacity");
   646         animationNewOpacity = new QPropertyAnimation(effectNew, "opacity");
   654         ui.Pages->widget(lastid)->setHidden(false);
   654         ui.Pages->widget(lastid)->setHidden(false);
   655 
   655 
   656         animationOldSlide = new QPropertyAnimation(ui.Pages->widget(lastid), "pos");
   656         animationOldSlide = new QPropertyAnimation(ui.Pages->widget(lastid), "pos");
   657         animationOldSlide->setDuration(duration);
   657         animationOldSlide->setDuration(duration);
   658         animationOldSlide->setStartValue(QPoint(0, 0));
   658         animationOldSlide->setStartValue(QPoint(0, 0));
   659         animationOldSlide->setEndValue(QPoint(-width()/coeff, 0));
   659         animationOldSlide->setEndValue(QPoint(-20000/coeff, 0));
   660         animationOldSlide->setEasingCurve(QEasingCurve::OutExpo);
   660         animationOldSlide->setEasingCurve(QEasingCurve::OutExpo);
   661 
   661 
   662 #ifdef false
   662 #ifdef false
   663         animationOldOpacity = new QPropertyAnimation(effectLast, "opacity");
   663         animationOldOpacity = new QPropertyAnimation(effectLast, "opacity");
   664         animationOldOpacity->setDuration(duration);
   664         animationOldOpacity->setDuration(duration);