Ignore:
Timestamp:
Oct 24, 2012, 7:56:20 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMplayer: update vendor to 0.8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/mplayerwindow.cpp

    r121 r133  
    3636#if DELAYED_RESIZE
    3737#include <QTimer>
     38#endif
     39
     40#if LOGO_ANIMATION
     41#include <QPropertyAnimation>
    3842#endif
    3943
     
    263267
    264268void MplayerWindow::setLogoVisible( bool b) {
     269#if !LOGO_ANIMATION
    265270        logo->setVisible(b);
     271#else
     272        if (!animated_logo) {
     273                logo->setVisible(b);
     274        } else {
     275                if (b) {
     276                        logo->show();
     277                        QPropertyAnimation * animation = new QPropertyAnimation(logo, "pos");
     278                        animation->setDuration(200);
     279                        animation->setEasingCurve(QEasingCurve::OutBounce);
     280                        animation->setStartValue(QPoint(logo->x(), 0 - logo->y()));
     281                        animation->setEndValue(logo->pos());
     282                        animation->start();
     283                } else {
     284                        QPropertyAnimation * animation = new QPropertyAnimation(logo, "pos");
     285                        animation->setDuration(200);
     286                        animation->setEasingCurve(QEasingCurve::OutBounce);
     287                        animation->setEndValue(QPoint(width(), logo->y()));
     288                        animation->setStartValue(logo->pos());
     289                        animation->start();
     290                        connect(animation, SIGNAL(finished()), logo, SLOT(hide()));
     291                        //logo->hide();
     292                }
     293        }
     294#endif
    266295}
    267296
Note: See TracChangeset for help on using the changeset viewer.