Changeset 133 for smplayer/vendor/current/src/mplayerwindow.cpp
- Timestamp:
- Oct 24, 2012, 7:56:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/mplayerwindow.cpp
r121 r133 36 36 #if DELAYED_RESIZE 37 37 #include <QTimer> 38 #endif 39 40 #if LOGO_ANIMATION 41 #include <QPropertyAnimation> 38 42 #endif 39 43 … … 263 267 264 268 void MplayerWindow::setLogoVisible( bool b) { 269 #if !LOGO_ANIMATION 265 270 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 266 295 } 267 296
Note:
See TracChangeset
for help on using the changeset viewer.