mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
33 lines
460 B
C++
33 lines
460 B
C++
|
|
#include "verifier.hpp"
|
|
|
|
#include <QTimer>
|
|
|
|
#include "../doc/document.hpp"
|
|
|
|
void CSMTools::Verifier::run()
|
|
{
|
|
mStep = 0;
|
|
|
|
QTimer timer;
|
|
|
|
timer.connect (&timer, SIGNAL (timeout()), this, SLOT (verify()));
|
|
|
|
timer.start (0);
|
|
|
|
exec();
|
|
}
|
|
|
|
void CSMTools::Verifier::abort()
|
|
{
|
|
exit();
|
|
}
|
|
|
|
void CSMTools::Verifier::verify()
|
|
{
|
|
++mStep;
|
|
emit progress (mStep, 1000, CSMDoc::Document::State_Verifying);
|
|
|
|
if (mStep>=1000)
|
|
exit();
|
|
} |