Commit c9ae46db authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: fix use of incomplete type

parent 4c3f3f82
...@@ -52,6 +52,11 @@ PixmapAnimator::PixmapAnimator( QWidget *parent, QList<QString> frames ) ...@@ -52,6 +52,11 @@ PixmapAnimator::PixmapAnimator( QWidget *parent, QList<QString> frames )
setFps( frames.count() ); /* default to 1 sec loop */ setFps( frames.count() ); /* default to 1 sec loop */
} }
PixmapAnimator::~PixmapAnimator()
{
qDeleteAll( pixmaps );
}
void PixmapAnimator::updateCurrentTime( int msecs ) void PixmapAnimator::updateCurrentTime( int msecs )
{ {
int i = msecs / interval; int i = msecs / interval;
......
...@@ -63,7 +63,7 @@ class PixmapAnimator : public BasicAnimator ...@@ -63,7 +63,7 @@ class PixmapAnimator : public BasicAnimator
public: public:
PixmapAnimator( QWidget *parent, QList<QString> _frames ); PixmapAnimator( QWidget *parent, QList<QString> _frames );
virtual int duration() const { return interval * pixmaps.count(); } virtual int duration() const { return interval * pixmaps.count(); }
virtual ~PixmapAnimator() { qDeleteAll( pixmaps ); } virtual ~PixmapAnimator();
QPixmap *getPixmap() { return currentPixmap; } QPixmap *getPixmap() { return currentPixmap; }
protected: protected:
virtual void updateCurrentTime ( int msecs ); virtual void updateCurrentTime ( int msecs );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment