Skip to content
Permalink
Browse files

QgsGeoPackageImportTask -> QgsConcurrentFileWriterImportTask

  • Loading branch information
elpaso committed Sep 19, 2017
1 parent 3fc2a49 commit 1f0e73a3362fdce65c79a9a2fa091c08e04a0891
Showing with 8 additions and 3 deletions.
  1. +1 −1 src/providers/ogr/qgsgeopackagedataitems.cpp
  2. +7 −2 src/providers/ogr/qgsgeopackagedataitems.h
@@ -193,7 +193,7 @@ bool QgsGeoPackageConnectionItem::handleDrop( const QMimeData *data, Qt::DropAct
bool hasError = false;

// Main task
std::unique_ptr< QgsGeoPackageImportTask > mainTask( new QgsGeoPackageImportTask( tr( "GeoPackage import" ) ) );
std::unique_ptr< QgsConcurrentFileWriterImportTask > mainTask( new QgsConcurrentFileWriterImportTask( tr( "GeoPackage import" ) ) );
QgsTaskList importTasks;

const auto lst = QgsMimeDataUtils::decodeUriList( data );
@@ -129,13 +129,18 @@ class QgsGeoPackageDataItemProvider : public QgsDataItemProvider
};


class QgsGeoPackageImportTask : public QgsTask
/**
* \brief The QgsConcurrentFileWriterImportTask class is the parent task for
* importing layers from a drag and drop operation in the browser.
* Individual layers need to be added as individual substask.
*/
class QgsConcurrentFileWriterImportTask : public QgsTask
{
Q_OBJECT

public:

QgsGeoPackageImportTask( const QString &desc = QString() ) : QgsTask( desc ) {}
QgsConcurrentFileWriterImportTask( const QString &desc = QString() ) : QgsTask( desc ) {}

void emitProgressChanged( double progress ) { setProgress( progress ); }

0 comments on commit 1f0e73a

Please sign in to comment.
You can’t perform that action at this time.