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
@@ -73,9 +73,9 @@ bool QDialogProgress::exec( QWidget *parent, QCDScene *scene )
dialog.setWindowTitle( tr( "Printing: " ) + scene->name() );
connect( dialog.m_ui->buttonBox, SIGNAL(clicked(QAbstractButton*)), &dialog, SLOT(onButtonClicked(QAbstractButton*)) );
connect( drive, SIGNAL(prepareProgress(long,long)), &dialog, SLOT(onPrepareProgress(long,long)) );
connect( drive, SIGNAL(labelProgress(long,long)), &dialog, SLOT(onLabelProgress(long,long)) );
connect( drive, SIGNAL(timeEstimate(long)), &dialog, SLOT(onTimeEstimate(long)) );
connect( drive, SIGNAL(prepareProgress(int,int)), &dialog, SLOT(onPrepareProgress(int,int)) );
connect( drive, SIGNAL(labelProgress(int,int)), &dialog, SLOT(onLabelProgress(int,int)) );
connect( drive, SIGNAL(timeEstimate(int)), &dialog, SLOT(onTimeEstimate(int)) );
connect( drive, SIGNAL(finished(int)), &dialog, SLOT(onFinished(int)) );
drive->print( params, scene );
@@ -98,13 +98,13 @@ void QDialogProgress::onButtonClicked( QAbstractButton *button )
done( 0 );
}
void QDialogProgress::onPrepareProgress( long current, long final )
void QDialogProgress::onPrepareProgress( int current, int final )
{
m_ui->progressPreparation->setMaximum( final );
m_ui->progressPreparation->setValue( current );
}
void QDialogProgress::onLabelProgress( long current, long final )
void QDialogProgress::onLabelProgress( int current, int final )
{
m_ui->progressPrinting->setMaximum( final );
m_ui->progressPrinting->setValue( current );
@@ -116,7 +116,7 @@ void QDialogProgress::onLabelProgress( long current, long final )
}
}
void QDialogProgress::onTimeEstimate( long time )
void QDialogProgress::onTimeEstimate( int time )
{
m_ui->timeEstimated->setTime( QTime().addSecs( time ) );
}