forked from mirror/openmw-tes3mp
33 lines
No EOL
447 B
C++
33 lines
No EOL
447 B
C++
|
|
#include "verifier.hpp"
|
|
|
|
#include <QTimer>
|
|
|
|
#include "../doc/state.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::State_Verifying);
|
|
|
|
if (mStep>=1000)
|
|
exit();
|
|
} |