OpenHantek
iconfont
QtAwesomeAnim.h
1
#ifndef QTAWESOMEANIMATION_H
2
#define QTAWESOMEANIMATION_H
3
4
#include <QObject>
5
6
class
QPainter;
7
class
QRect;
8
class
QTimer;
9
class
QWidget;
10
14
class
QtAwesomeAnimation
:
public
QObject
15
{
16
Q_OBJECT
17
18
public
:
19
QtAwesomeAnimation
( QWidget* parentWidget,
int
interval=20,
double
step=0.01);
20
21
void
setup( QPainter& painter,
const
QRect& rect );
22
23
public
slots:
24
void
update();
25
26
private
:
27
QWidget* parentWidgetRef_;
28
QTimer* timer_;
29
int
interval_;
30
double
step_;
31
double
angle_;
32
33
};
34
35
36
#endif // QTAWESOMEANIMATION_H
QtAwesomeAnimation
Definition:
QtAwesomeAnim.h:14
Generated by
1.8.14