qsswraper/widgets/loading_widget.h

27 lines
522 B
C++

#ifndef LOADING_WIDGET_H
#define LOADING_WIDGET_H
#include <QWidget>
#include <QTimer>
#include <QPixmap>
class LoadingAnimationWidget:public QWidget
{
Q_OBJECT
public:
LoadingAnimationWidget(QWidget *parent);
LoadingAnimationWidget(QWidget *parent,QPixmap*);
void SetPixmap(QPixmap*);
bool m_rotate;
QTimer *m_timer;
QPixmap *m_pixmap;
public slots:
void timerout();
protected:
void paintEvent(QPaintEvent *);
private:
LoadingAnimationWidget();
};
#endif // LOADING_WIDGET_H