QConsolePrintProgress fixed to connect to drive

git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@82 cac9541e-1b8d-4bfa-827e-589bba606050
This commit is contained in:
ruglory
2009-02-22 06:36:38 +00:00
parent 80d1d040a6
commit 733d7e29c3
3 changed files with 16 additions and 10 deletions
+6 -7
View File
@@ -5,14 +5,13 @@
#include <iostream>
QConsolePrintProgress::QConsolePrintProgress()
QConsolePrintProgress::QConsolePrintProgress( QLightDrive *drive )
: m_drive( drive )
{
QLightScribe *scribe = QLightScribe::instance();
connect( scribe, SIGNAL(prepareProgress(long,long)), this, SLOT(onPrepareProgress(long,long)) );
connect( scribe, SIGNAL(labelProgress(long,long)), this, SLOT(onLabelProgress(long,long)) );
connect( scribe, SIGNAL(timeEstimate(long)), this, SLOT(onTimeEstimate(long)) );
connect( scribe, SIGNAL(finished(int)), this, SLOT(onFinished(int)) );
connect( drive, SIGNAL(prepareProgress(long,long)), this, SLOT(onPrepareProgress(long,long)) );
connect( drive, SIGNAL(labelProgress(long,long)), this, SLOT(onLabelProgress(long,long)) );
connect( drive, SIGNAL(timeEstimate(long)), this, SLOT(onTimeEstimate(long)) );
connect( drive, SIGNAL(finished(int)), this, SLOT(onFinished(int)) );
}