1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 23:45:32 +00:00
openmw-tes3mp/apps/opencs/model/tools/verifier.cpp

33 lines
460 B
C++
Raw Normal View History

#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();
}