signal parameter changed from long to int

marshalling implemented


git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@86 cac9541e-1b8d-4bfa-827e-589bba606050
This commit is contained in:
ruglory
2009-02-23 02:59:26 +00:00
parent 93e0426ba9
commit 7ef4666fce
6 changed files with 50 additions and 26 deletions
+6 -6
View File
@@ -10,9 +10,9 @@ std::ostream &operator<<( std::ostream &os, const QString &str );
QConsolePrintProgress::QConsolePrintProgress( QLightDrive *drive )
: m_drive( drive )
{
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(prepareProgress(int,int)), this, SLOT(onPrepareProgress(int,int)) );
connect( drive, SIGNAL(labelProgress(int,int)), this, SLOT(onLabelProgress(int,int)) );
connect( drive, SIGNAL(timeEstimate(int)), this, SLOT(onTimeEstimate(int)) );
connect( drive, SIGNAL(finished(int)), this, SLOT(onFinished(int)) );
}
@@ -21,17 +21,17 @@ QConsolePrintProgress::~QConsolePrintProgress()
{
}
void QConsolePrintProgress::onPrepareProgress( long current, long final )
void QConsolePrintProgress::onPrepareProgress( int current, int final )
{
std::cout << "Preparing label: " << current << '/' << final << " \r";
}
void QConsolePrintProgress::onLabelProgress( long current, long final )
void QConsolePrintProgress::onLabelProgress( int current, int final )
{
std::cout << "Printing label: " << current << '/' << final << " \r";
}
void QConsolePrintProgress::onTimeEstimate( long time )
void QConsolePrintProgress::onTimeEstimate( int time )
{
std::cout << std::endl;
}