Improve job status reporting.
This commit is contained in:
parent
b6e78e24b3
commit
659a388688
@ -84,7 +84,7 @@ private:
|
|||||||
|
|
||||||
int jobCount = m_jobs.size();
|
int jobCount = m_jobs.size();
|
||||||
QString message = m_jobIndex < jobCount
|
QString message = m_jobIndex < jobCount
|
||||||
? m_jobs.at( m_jobIndex )->prettyName()
|
? m_jobs.at( m_jobIndex )->prettyDescription()
|
||||||
: tr( "Done" );
|
: tr( "Done" );
|
||||||
|
|
||||||
qreal percent = ( m_jobIndex + jobPercent ) / qreal( jobCount );
|
qreal percent = ( m_jobIndex + jobPercent ) / qreal( jobCount );
|
||||||
|
@ -231,10 +231,15 @@ PythonJob::~PythonJob()
|
|||||||
QString
|
QString
|
||||||
PythonJob::prettyName() const
|
PythonJob::prettyName() const
|
||||||
{
|
{
|
||||||
return tr( "Run script %1" )
|
return QDir( m_workingPath ).dirName();
|
||||||
.arg( QDir( m_workingPath ).dirName() +
|
}
|
||||||
QDir::separator() +
|
|
||||||
m_scriptFile );
|
|
||||||
|
QString
|
||||||
|
PythonJob::prettyDescription() const
|
||||||
|
{
|
||||||
|
return tr( "Run %1 operation." )
|
||||||
|
.arg( QDir( m_workingPath ).dirName() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ public:
|
|||||||
virtual ~PythonJob();
|
virtual ~PythonJob();
|
||||||
|
|
||||||
QString prettyName() const override;
|
QString prettyName() const override;
|
||||||
|
QString prettyDescription() const override;
|
||||||
JobResult exec() override;
|
JobResult exec() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user