Commit 61ba7a76 authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Removed unnecessary method cleanUp, changed the access level of run to

protected, like in QThread.

svn path=/trunk/KDE/kdeutils/ark/; revision=955971
parent 83305ff7
......@@ -26,14 +26,13 @@
#include "threading.h"
#include <QApplication>
#include <QTimer>
#include <kdebug.h>
#include <KDebug>
namespace Kerfuffle
{
ThreadExecution::ThreadExecution(Kerfuffle::Job *job)
: m_job(job)
{
}
void ThreadExecution::run()
......@@ -44,20 +43,13 @@ namespace Kerfuffle
//and when finished, quit the event loop
connect(m_job, SIGNAL(finished(KJob*)),
this, SLOT(cleanUp()));
this, SLOT(quit()));
//start the event loop
exec();
kDebug(1601) << "Finished exec";
}
void ThreadExecution::cleanUp()
{
kDebug(1601);
//exit the event loop
quit();
}
}
#include "threading.moc"
......@@ -31,23 +31,19 @@
namespace Kerfuffle
{
class ThreadExecution : public QThread
{
Q_OBJECT
private slots:
void cleanUp();
public:
ThreadExecution(Kerfuffle::Job *job);
private:
protected:
void run();
private:
Kerfuffle::Job *m_job;
};
}
#endif /* _THREADING_H_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment