aboutsummaryrefslogtreecommitdiff
path: root/src/lib/downloads/widgets/downloaditemwidget.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-01 13:48:31 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-01 13:48:31 +0100
commit83d1f0c0c3a78101fbe174a02b17a950c496e635 (patch)
treeed3dba7c1a01e5916e1c146e69d7d86f7cd7e0d0 /src/lib/downloads/widgets/downloaditemwidget.cpp
parentUrlCompleter searches the bookmarks tree (folder href) (diff)
downloadsmolbote-83d1f0c0c3a78101fbe174a02b17a950c496e635.tar.xz
Download items' width should no longer exceed the list width
Diffstat (limited to 'src/lib/downloads/widgets/downloaditemwidget.cpp')
-rw-r--r--src/lib/downloads/widgets/downloaditemwidget.cpp8
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());
}