diff options
Diffstat (limited to 'src/lib/downloads/widgets/downloaditemwidget.cpp')
-rw-r--r-- | src/lib/downloads/widgets/downloaditemwidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/downloads/widgets/downloaditemwidget.cpp b/src/lib/downloads/widgets/downloaditemwidget.cpp index 6145a6e..fff3cfc 100644 --- a/src/lib/downloads/widgets/downloaditemwidget.cpp +++ b/src/lib/downloads/widgets/downloaditemwidget.cpp @@ -19,7 +19,8 @@ DownloadItemWidget::DownloadItemWidget(QWebEngineDownloadItem *item, QWidget *pa m_item = item; ui->setupUi(this); - ui->url_label->setText(item->url().toString()); + + ui->url_label->setContent(item->url().toString()); ui->detailsWidget->hide(); ui->path_label->setText(item->path()); @@ -93,11 +94,10 @@ void DownloadItemWidget::updateProgress(qint64 value, qint64 total) { ui->progressBar->setMaximum(total); ui->progressBar->setValue(value); - ui->filesize_label->setText(QString("%1 / %2").arg(sizeString(value), sizeString(total))); + ui->progressBar->setFormat(QString("%1 / %2").arg(sizeString(value), sizeString(total))); } void DownloadItemWidget::updateFinished() { - ui->progressBar->setMaximum(100); - ui->progressBar->setValue(100); + ui->progressBar->setValue(ui->progressBar->maximum()); } |