You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wheeldetect/tpvs17/lpReport/waitingdialog.h

29 lines
477 B
C

#ifndef WAITINGDIALOG_H
#define WAITINGDIALOG_H
#include <QDialog>
#include "QTimer"
#include <QProgressBar>
class WaitingDialog : public QDialog
{
Q_OBJECT
public:
WaitingDialog(QWidget *parent =0);
~WaitingDialog();
void Start(int interval = 100, int maxValue = 100);
void Stop();
private slots:
void UpdateSlot();
private:
int m_CurrentValue;
int m_UpdateInterval;
int m_MaxValue;
QTimer m_Timer;
QProgressBar *m_ProgressBar;
};
#endif // WAITINGDIALOG_H