| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#pragma once |
| 6 |
|
| 7 |
#include <DWidget> |
| 8 |
#include <DWaterProgress> |
| 9 |
|
| 10 |
DWIDGET_USE_NAMESPACE |
| 11 |
|
| 12 |
class ProgressView : public DWidget |
| 13 |
{ |
| 14 |
Q_OBJECT |
| 15 |
public: |
| 16 |
explicit ProgressView(DWidget *parent = nullptr); |
| 17 |
|
| 18 |
protected: |
| 19 |
virtual void timerEvent(QTimerEvent *event); |
| 20 |
|
| 21 |
signals: |
| 22 |
void finish(quint32 current,quint32 error, const QString &title, const QString &description); |
| 23 |
void testCancel(); |
| 24 |
|
| 25 |
private: |
| 26 |
int m_iInterval; |
| 27 |
DWaterProgress* m_waterProgress; |
| 28 |
}; |
| 29 |
|