Skip to content
Permalink
Browse files

add the indexed laz file name to task name

  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Feb 10, 2021
1 parent 48acff6 commit 3cefcbac52f6ddd17e285a619de3299208de906c
@@ -28,8 +28,8 @@
#include "qgsmessagelog.h"
#include "qgis.h"

QgsPdalEptGenerationTask::QgsPdalEptGenerationTask( const QString &file, const QString &outputDir )
: QgsTask( tr( "Generate EPT Index" ) )
QgsPdalEptGenerationTask::QgsPdalEptGenerationTask( const QString &file, const QString &outputDir, const QString &name )
: QgsTask( tr( "Generate EPT Index " ) + name )
, mOutputDir( outputDir )
, mFile( file )
{
@@ -24,7 +24,7 @@ class QgsPdalEptGenerationTask: public QgsTask
Q_OBJECT

public:
QgsPdalEptGenerationTask( const QString &file, const QString &outputDir );
QgsPdalEptGenerationTask( const QString &file, const QString &outputDir, const QString &name = QString() );
bool run() override;

QString untwineExecutableBinary() const;
@@ -101,7 +101,7 @@ void QgsPdalProvider::generateIndex()

const QString outputDir = _outdir( dataSourceUri() );

QgsPdalEptGenerationTask *generationTask = new QgsPdalEptGenerationTask( dataSourceUri(), outputDir );
QgsPdalEptGenerationTask *generationTask = new QgsPdalEptGenerationTask( dataSourceUri(), outputDir, QStringLiteral( "( " ) + QFileInfo( dataSourceUri() ).fileName() + QStringLiteral( " )" ) );

connect( generationTask, &QgsPdalEptGenerationTask::taskTerminated, this, &QgsPdalProvider::onGenerateIndexFailed );
connect( generationTask, &QgsPdalEptGenerationTask::taskCompleted, this, &QgsPdalProvider::onGenerateIndexFinished );

0 comments on commit 3cefcba

Please sign in to comment.