aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-05-13 20:51:55 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-05-13 20:51:55 +0200
commit17c91f06704cfd0ba28a8715f42639b2f047da26 (patch)
tree5f680e34c2c67cbef40cb01a3aa010a23faa0e20 /lib
parentDownload widget item tooltip (diff)
downloadsmolbote-17c91f06704cfd0ba28a8715f42639b2f047da26.tar.xz
Set download tooltip image preview width to 400
Diffstat (limited to 'lib')
-rw-r--r--lib/downloads/widgets/downloaditemwidget.cpp2
-rw-r--r--lib/downloads/widgets/elidedlabel.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/downloads/widgets/downloaditemwidget.cpp b/lib/downloads/widgets/downloaditemwidget.cpp
index 660d8a5..3fe2ebd 100644
--- a/lib/downloads/widgets/downloaditemwidget.cpp
+++ b/lib/downloads/widgets/downloaditemwidget.cpp
@@ -126,7 +126,7 @@ void DownloadItemWidget::updateFinished()
"</tr>"
"</table>";
if(item->mimeType().startsWith("image"))
- tooltip = tooltip.arg("<img src='file://" + item->path() + "' alt='not available'>");
+ tooltip = tooltip.arg("<img src='file://" + item->path() + "' width='400' alt='not available'>");
else
tooltip = tooltip.arg("not available");
tooltip = tooltip.arg(item->url().toString(), item->path(), item->mimeType(), sizeString(item->totalBytes()));
diff --git a/lib/downloads/widgets/elidedlabel.cpp b/lib/downloads/widgets/elidedlabel.cpp
index d898da0..da81407 100644
--- a/lib/downloads/widgets/elidedlabel.cpp
+++ b/lib/downloads/widgets/elidedlabel.cpp
@@ -14,7 +14,6 @@
ElidedLabel::ElidedLabel(QWidget *parent)
: QLabel(parent)
{
- setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
}
void ElidedLabel::setText(const QString &text)