qt/LedOK/base/waitingdlg.h

26 lines
508 B
C
Raw Normal View History

2022-08-25 18:37:24 +08:00
#ifndef WAITINGDLG_H
#define WAITINGDLG_H
#include "basedlg.h"
2022-10-27 15:07:45 +08:00
#include "base/customprogressindicator.h"
2022-08-25 18:37:24 +08:00
#include <QLabel>
class WaitingDlg : public BaseDlg {
Q_OBJECT
public:
2022-10-27 15:07:45 +08:00
explicit WaitingDlg(QWidget *parent = nullptr, QString text = 0, QString sucText = 0);
2022-08-25 18:37:24 +08:00
QLabel *fdText;
2022-10-27 15:07:45 +08:00
QString sucText;
2022-08-25 18:37:24 +08:00
CustomProgressIndicator *mIndicator;
2022-10-27 15:07:45 +08:00
public slots:
void success();
2022-08-25 18:37:24 +08:00
protected:
void timerEvent(QTimerEvent *) override;
private:
int closeTimerId{0};
};
#endif // WAITINGDLG_H