equal
deleted
inserted
replaced
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); |