src/gui/widgets/qeffects.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
    39 **
    39 **
    40 ****************************************************************************/
    40 ****************************************************************************/
    41 
    41 
    42 #include "qapplication.h"
    42 #include "qapplication.h"
    43 #ifndef QT_NO_EFFECTS
    43 #ifndef QT_NO_EFFECTS
    44 #include "qdatetime.h"
       
    45 #include "qdesktopwidget.h"
    44 #include "qdesktopwidget.h"
    46 #include "qeffects_p.h"
    45 #include "qeffects_p.h"
    47 #include "qevent.h"
    46 #include "qevent.h"
    48 #include "qimage.h"
    47 #include "qimage.h"
    49 #include "qpainter.h"
    48 #include "qpainter.h"
    50 #include "qpixmap.h"
    49 #include "qpixmap.h"
    51 #include "qpointer.h"
    50 #include "qpointer.h"
    52 #include "qtimer.h"
    51 #include "qtimer.h"
       
    52 #include "qelapsedtimer.h"
    53 #include "qdebug.h"
    53 #include "qdebug.h"
    54 
    54 
    55 QT_BEGIN_NAMESPACE
    55 QT_BEGIN_NAMESPACE
    56 
    56 
    57 /*
    57 /*
   101     QPointer<QAccessWidget> widget;
   101     QPointer<QAccessWidget> widget;
   102     int duration;
   102     int duration;
   103     int elapsed;
   103     int elapsed;
   104     bool showWidget;
   104     bool showWidget;
   105     QTimer anim;
   105     QTimer anim;
   106     QTime checkTime;
   106     QElapsedTimer checkTime;
   107     double windowOpacity;
   107     double windowOpacity;
   108 };
   108 };
   109 
   109 
   110 static QAlphaWidget* q_blend = 0;
   110 static QAlphaWidget* q_blend = 0;
   111 
   111 
   382     bool done;
   382     bool done;
   383     bool showWidget;
   383     bool showWidget;
   384     int orientation;
   384     int orientation;
   385 
   385 
   386     QTimer anim;
   386     QTimer anim;
   387     QTime checkTime;
   387     QElapsedTimer checkTime;
   388 
   388 
   389     QPixmap pm;
   389     QPixmap pm;
   390 };
   390 };
   391 
   391 
   392 static QRollEffect* q_roll = 0;
   392 static QRollEffect* q_roll = 0;