mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 22:45:33 +00:00
more signal cleanup
This commit is contained in:
parent
a5aebfb760
commit
414e6abb95
4 changed files with 14 additions and 9 deletions
|
@ -23,7 +23,10 @@ void CSMDoc::Operation::prepareStages()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CSMDoc::Operation::Operation (int type, bool ordered) : mType (type), mOrdered (ordered) {}
|
CSMDoc::Operation::Operation (int type, bool ordered) : mType (type), mOrdered (ordered)
|
||||||
|
{
|
||||||
|
connect (this, SIGNAL (finished()), this, SLOT (operationDone()));
|
||||||
|
}
|
||||||
|
|
||||||
CSMDoc::Operation::~Operation()
|
CSMDoc::Operation::~Operation()
|
||||||
{
|
{
|
||||||
|
@ -80,4 +83,9 @@ void CSMDoc::Operation::executeStage()
|
||||||
|
|
||||||
if (mCurrentStage==mStages.end())
|
if (mCurrentStage==mStages.end())
|
||||||
exit();
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
void CSMDoc::Operation::operationDone()
|
||||||
|
{
|
||||||
|
emit done (mType);
|
||||||
}
|
}
|
|
@ -43,6 +43,8 @@ namespace CSMDoc
|
||||||
|
|
||||||
void reportMessage (const QString& message, int type);
|
void reportMessage (const QString& message, int type);
|
||||||
|
|
||||||
|
void done (int type);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
void abort();
|
void abort();
|
||||||
|
@ -50,6 +52,8 @@ namespace CSMDoc
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
void executeStage();
|
void executeStage();
|
||||||
|
|
||||||
|
void operationDone();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ CSMDoc::Operation *CSMTools::Tools::getVerifier()
|
||||||
mVerifier = new CSMDoc::Operation (CSMDoc::State_Verifying, false);
|
mVerifier = new CSMDoc::Operation (CSMDoc::State_Verifying, false);
|
||||||
|
|
||||||
connect (mVerifier, SIGNAL (progress (int, int, int)), this, SIGNAL (progress (int, int, int)));
|
connect (mVerifier, SIGNAL (progress (int, int, int)), this, SIGNAL (progress (int, int, int)));
|
||||||
connect (mVerifier, SIGNAL (finished()), this, SLOT (verifierDone()));
|
connect (mVerifier, SIGNAL (done (int)), this, SIGNAL (done (int)));
|
||||||
connect (mVerifier, SIGNAL (reportMessage (const QString&, int)),
|
connect (mVerifier, SIGNAL (reportMessage (const QString&, int)),
|
||||||
this, SLOT (verifierMessage (const QString&, int)));
|
this, SLOT (verifierMessage (const QString&, int)));
|
||||||
|
|
||||||
|
@ -132,11 +132,6 @@ CSMTools::ReportModel *CSMTools::Tools::getReport (const CSMWorld::UniversalId&
|
||||||
return mReports.at (id.getIndex());
|
return mReports.at (id.getIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSMTools::Tools::verifierDone()
|
|
||||||
{
|
|
||||||
emit done (CSMDoc::State_Verifying);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CSMTools::Tools::verifierMessage (const QString& message, int type)
|
void CSMTools::Tools::verifierMessage (const QString& message, int type)
|
||||||
{
|
{
|
||||||
std::map<int, int>::iterator iter = mActiveReports.find (type);
|
std::map<int, int>::iterator iter = mActiveReports.find (type);
|
||||||
|
|
|
@ -61,8 +61,6 @@ namespace CSMTools
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
void verifierDone();
|
|
||||||
|
|
||||||
void verifierMessage (const QString& message, int type);
|
void verifierMessage (const QString& message, int type);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
Loading…
Reference in a new issue