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 )
setFps( frames.count() ); /* default to 1 sec loop */
}
PixmapAnimator::~PixmapAnimator()
{
qDeleteAll( pixmaps );
}
void PixmapAnimator::updateCurrentTime( int msecs )
{
int i = msecs / interval;
......
......@@ -63,7 +63,7 @@ class PixmapAnimator : public BasicAnimator
public:
PixmapAnimator( QWidget *parent, QList<QString> _frames );
virtual int duration() const { return interval * pixmaps.count(); }
virtual ~PixmapAnimator() { qDeleteAll( pixmaps ); }
virtual ~PixmapAnimator();
QPixmap *getPixmap() { return currentPixmap; }
protected:
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