mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 06:23:54 +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()
|
||||
{
|
||||
|
@ -80,4 +83,9 @@ void CSMDoc::Operation::executeStage()
|
|||
|
||||
if (mCurrentStage==mStages.end())
|
||||
exit();
|
||||
}
|
||||
|
||||
void CSMDoc::Operation::operationDone()
|
||||
{
|
||||
emit done (mType);
|
||||
}
|
|
@ -43,6 +43,8 @@ namespace CSMDoc
|
|||
|
||||
void reportMessage (const QString& message, int type);
|
||||
|
||||
void done (int type);
|
||||
|
||||
public slots:
|
||||
|
||||
void abort();
|
||||
|
@ -50,6 +52,8 @@ namespace CSMDoc
|
|||
private slots:
|
||||
|
||||
void executeStage();
|
||||
|
||||
void operationDone();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ CSMDoc::Operation *CSMTools::Tools::getVerifier()
|
|||
mVerifier = new CSMDoc::Operation (CSMDoc::State_Verifying, false);
|
||||
|
||||
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)),
|
||||
this, SLOT (verifierMessage (const QString&, int)));
|
||||
|
||||
|
@ -132,11 +132,6 @@ CSMTools::ReportModel *CSMTools::Tools::getReport (const CSMWorld::UniversalId&
|
|||
return mReports.at (id.getIndex());
|
||||
}
|
||||
|
||||
void CSMTools::Tools::verifierDone()
|
||||
{
|
||||
emit done (CSMDoc::State_Verifying);
|
||||
}
|
||||
|
||||
void CSMTools::Tools::verifierMessage (const QString& message, int type)
|
||||
{
|
||||
std::map<int, int>::iterator iter = mActiveReports.find (type);
|
||||
|
|
|
@ -61,8 +61,6 @@ namespace CSMTools
|
|||
|
||||
private slots:
|
||||
|
||||
void verifierDone();
|
||||
|
||||
void verifierMessage (const QString& message, int type);
|
||||
|
||||
signals:
|
||||
|
|
Loading…
Reference in a new issue