00001 #ifndef PUFF_H 00002 #define PUFF_H 00003 00004 #include <QWidget> 00005 00006 namespace PSQt { 00007 00008 class Puff : public QWidget 00009 { 00010 Q_OBJECT 00011 00012 public: 00013 Puff(QWidget *parent = 0); 00014 00015 protected: 00016 void paintEvent(QPaintEvent *event); 00017 void timerEvent(QTimerEvent *event); 00018 00019 private: 00020 int x; 00021 qreal opacity; 00022 int timerId; 00023 00024 }; 00025 00026 } // namespace PSQt 00027 00028 #endif // PUFF_H