19 #include <QMessageBox>
22 : mOutputFileName( outputFileName ),
25 setWindowTitle( tr(
"Download" ) );
26 setLabelText( tr(
"Downloading %1." ).arg( outputFileName ) );
42 void QgsFileDownloaderDialog::onError(
const QStringList &errors )
44 QMessageBox::warning(
nullptr, tr(
"Download File" ), errors.join( QStringLiteral(
"<br>" ) ) );
47 void QgsFileDownloaderDialog::onDownloadProgress( qint64 bytesReceived, qint64 bytesTotal )
49 setMaximum( bytesTotal );
50 setValue( bytesReceived );