Skip to content

Commit

Permalink
Fix progress bar for file downloader alg
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 25, 2017
1 parent e24333a commit c728a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmfiledownloader.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void QgsFileDownloaderAlgorithm::receiveProgressFromDownloader( qint64 bytesRece
} }
} }


QString QgsFileDownloaderAlgorithm::humanSize( qint64 &bytes ) QString QgsFileDownloaderAlgorithm::humanSize( qint64 bytes )
{ {
QStringList list; QStringList list;
list << "KB" << "MB" << "GB" << "TB"; list << "KB" << "MB" << "GB" << "TB";
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmfiledownloader.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class QgsFileDownloaderAlgorithm : public QgsProcessingAlgorithm, public QObject
QString mLastReport; QString mLastReport;
void reportErrors( QStringList errors ); void reportErrors( QStringList errors );
void receiveProgressFromDownloader( qint64 bytesReceived, qint64 bytesTotal ); void receiveProgressFromDownloader( qint64 bytesReceived, qint64 bytesTotal );
static QString humanSize( qint64 &bytes ); static QString humanSize( qint64 bytes );
void sendProgressFeedback(); void sendProgressFeedback();
}; };


Expand Down

0 comments on commit c728a35

Please sign in to comment.