RunViewWait.cpp 261 B

1234567891011121314151617
  1. #include "RunViewWait.h"
  2. RunViewWait::RunViewWait(InteractiveTask *task, QMutex *mutex)
  3. :RunAbstract(task, mutex)
  4. {
  5. }
  6. void RunViewWait::run()
  7. {
  8. int timeout = getRequest().toInt();
  9. if (timeout > 0)
  10. {
  11. QThread::msleep(timeout);
  12. }
  13. }