23 lines
538 B
C++
23 lines
538 B
C++
#ifndef PROGRESS_EVENT_H_INCLUDED
|
|
#define PROGRESS_EVENT_H_INCLUDED
|
|
|
|
#include <QEvent>
|
|
|
|
class ProgressEvent : public QEvent {
|
|
|
|
int m_progressPercent;
|
|
public:
|
|
ProgressEvent();
|
|
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
|