examples/effects/fademessage/fademessage.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    42 #ifndef FADEMESSAGE_H
    42 #ifndef FADEMESSAGE_H
    43 #define FADEMESSAGE_H
    43 #define FADEMESSAGE_H
    44 
    44 
    45 #include <QGraphicsEffect>
    45 #include <QGraphicsEffect>
    46 #include <QGraphicsView>
    46 #include <QGraphicsView>
    47 #include <QTimeLine>
    47 #include <QPropertyAnimation>
    48 
    48 
    49 #include "fademessage.h"
    49 #include "fademessage.h"
    50 
    50 
    51 class FadeMessage: public QGraphicsView
    51 class FadeMessage: public QGraphicsView
    52 {
    52 {
    60 
    60 
    61 private slots:
    61 private slots:
    62     void togglePopup();
    62     void togglePopup();
    63 
    63 
    64 private:
    64 private:
    65     qreal m_index;
       
    66     QGraphicsScene m_scene;
    65     QGraphicsScene m_scene;
    67     QGraphicsColorizeEffect *m_effect;
    66     QGraphicsColorizeEffect *m_effect;
    68     QGraphicsItem *m_message;
    67     QGraphicsItem *m_message;
    69     QTimeLine *m_timeLine;
    68     QPropertyAnimation *m_animation;
    70 };
    69 };
    71 
    70 
    72 #endif // FADEMESSAGE_H
    71 #endif // FADEMESSAGE_H