2023-08-04 14:10:47 +02:00
|
|
|
#ifndef PROGRESS_EVENT_H_INCLUDED
|
|
|
|
#define PROGRESS_EVENT_H_INCLUDED
|
|
|
|
|
|
|
|
#include <QEvent>
|
|
|
|
|
|
|
|
class ProgressEvent : public QEvent {
|
|
|
|
|
|
|
|
int m_progressPercent;
|
|
|
|
public:
|
2023-08-05 18:50:50 +02:00
|
|
|
explicit ProgressEvent(int progressPercent);
|
2023-08-04 14:10:47 +02:00
|
|
|
virtual ~ProgressEvent();
|
|
|
|
static QEvent::Type type();
|
|
|
|
|
|
|
|
void setProgress(int progressPercent) { m_progressPercent = progressPercent; }
|
|
|
|
int progressPercent() { return m_progressPercent; }
|
|
|
|
int progressPercent() const { return m_progressPercent; }
|
|
|
|
private:
|
|
|
|
static QEvent::Type customEventType;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PROGRESS_EVENT_H_INCLUDED
|