99b8066f4
김태훈
V0.1.1
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef ANIMATEDIMAGEBOX_H
#define ANIMATEDIMAGEBOX_H
#include <QLabel>
#include <QtCore>
class AnimatedImageBox : public QLabel
{
Q_OBJECT
public:
explicit AnimatedImageBox(QWidget *parent = 0);
~AnimatedImageBox();
void load(QString fileName);
void clear();
void start(int msec);
void stop();
private:
QList<QPixmap> images;
QTimer *timer;
int index;
private slots:
void step();
};
#endif // ANIMATEDIMAGEBOX_H
|