qsswraper/widgets/loading_widget.h

27 lines
522 B
C
Raw Normal View History

2021-08-04 09:15:42 +00:00
#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