mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-03 01:42:20 +08:00
25 lines
424 B
C++
25 lines
424 B
C++
#ifndef PROGRESSLOAD_H
|
|
#define PROGRESSLOAD_H
|
|
|
|
#include <QWidget>
|
|
#include <QTimer>
|
|
#include <QPalette>
|
|
class ProgressLoad : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ProgressLoad(QWidget *parent = nullptr);
|
|
void setValue(int v);
|
|
void setTheme(bool dark,QColor color);
|
|
signals:
|
|
|
|
public slots:
|
|
private:
|
|
QWidget *m_progess;
|
|
int value;
|
|
QTimer *timer;
|
|
QPalette plt;
|
|
};
|
|
|
|
#endif // PROGRESSLOAD_H
|