diff options
Diffstat (limited to 'job.cpp')
-rw-r--r-- | job.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -2,14 +2,19 @@ #include "video.h" #include <QtConcurrentRun> -Job::Job(QObject *parent) +Job::Job(Video *parent) : QObject(parent), - m_gui(0) + m_gui(0), + m_video(parent) { m_watcher = new QFutureWatcher<bool>; m_watcher->setParent(this); connect(m_watcher, SIGNAL(finished()), this, SLOT(jobFinished())); } +Video* Job::video() const +{ + return m_video; +} void Job::runJob() { m_watcher->setFuture(QtConcurrent::run(this, &Job::executeJob)); |