diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-13 20:51:55 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-13 20:51:55 +0200 |
commit | 17c91f06704cfd0ba28a8715f42639b2f047da26 (patch) | |
tree | 5f680e34c2c67cbef40cb01a3aa010a23faa0e20 /lib | |
parent | Download widget item tooltip (diff) | |
download | smolbote-17c91f06704cfd0ba28a8715f42639b2f047da26.tar.xz |
Set download tooltip image preview width to 400
Diffstat (limited to 'lib')
-rw-r--r-- | lib/downloads/widgets/downloaditemwidget.cpp | 2 | ||||
-rw-r--r-- | lib/downloads/widgets/elidedlabel.cpp | 1 |
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) |