20 lines
467 B
C++
20 lines
467 B
C++
#include "progress_event.h"
|
|
|
|
QEvent::Type ProgressEvent::customEventType = QEvent::None;
|
|
|
|
ProgressEvent::ProgressEvent()
|
|
: QEvent(ProgressEvent::type())
|
|
, m_progressPercent(0) {
|
|
}
|
|
|
|
ProgressEvent::~ProgressEvent() {
|
|
}
|
|
|
|
QEvent::Type ProgressEvent::type() {
|
|
if (customEventType == QEvent::None) {
|
|
int generatedType = QEvent::registerEventType();
|
|
customEventType = static_cast<QEvent::Type>(generatedType);
|
|
}
|
|
return customEventType;
|
|
}
|