Ignore:
Timestamp:
Mar 15, 2012, 5:14:10 PM (14 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer 0.7.1: vendor update

File:
1 edited

Legend:

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

    r118 r121  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2011 Ricardo Villalba <[email protected]>
     2    Copyright (C) 2006-201>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2222#include <QHBoxLayout>
    2323
     24
     25
     26
     27
    2428FloatingWidget::FloatingWidget( QWidget * parent )
    2529        : QWidget( parent, Qt::Window | Qt::FramelessWindowHint |
    2630                       Qt::WindowStaysOnTopHint )
    2731{
     32
     33
     34
     35
    2836        setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
    2937
     
    4048        _margin = 0;
    4149        _animated = false;
     50
    4251        animation_timer = new QTimer(this);
    4352        animation_timer->setInterval(2);
    4453        connect( animation_timer, SIGNAL(timeout()), this, SLOT(animate()) );
    45 
     54#endif
    4655        connect( &auto_hide_timer, SIGNAL(timeout()),
    4756             this, SLOT(checkUnderMouse()) );
     
    5059
    5160FloatingWidget::~FloatingWidget() {
     61
     62
     63
    5264}
    5365
     
    105117
    106118void FloatingWidget::showAnimated(QPoint final_position, Movement movement) {
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
    107137        current_movement = movement;
    108138        final_y = final_position.y();
     
    118148
    119149        animation_timer->start();
     150
    120151}
    121152
     153
    122154void FloatingWidget::animate() {
    123155        if (current_y == final_y) {
     
    128160        }
    129161}
     162
    130163
    131164void FloatingWidget::checkUnderMouse() {
Note: See TracChangeset for help on using the changeset viewer.