33 #include <QtCore/QCoreApplication> 
   34 #include <QSizePolicy> 
   47   m_frame->setFrameShape(QFrame::StyledPanel);
 
   48   m_frame->setFrameShadow(QFrame::Sunken);
 
   62   m_button->setIcon(
m_button->style()->standardIcon(QStyle::SP_TitleBarCloseButton));
 
   76   this->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
 
   87   QCoreApplication::processEvents();
 
   99   QCoreApplication::processEvents();
 
  104   emit taskCanceled(m_taskId);
 
  111     if(m_progressBar->minimum() == 0 && m_progressBar->maximum() == 0)
 
  114     m_progressBar->setValue(static_cast<te::qt::widgets::ProgressSetValueEvent*>(e)->m_value);
 
  121     m_label->setText(static_cast<ProgressSetMessageEvent*>(e)->m_value.c_str());
 
  126     m_progressBar->reset();
 
The ProgressSetValueEvent is a custom event used to set a new value into a progress bar...
 
A custom event used to set a new message into a progress bar. 
 
The ProgressResetEvent is a custom event used to reset a progress bar.