From 17c91f06704cfd0ba28a8715f42639b2f047da26 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 13 May 2018 20:51:55 +0200 Subject: Set download tooltip image preview width to 400 --- lib/downloads/widgets/downloaditemwidget.cpp | 2 +- lib/downloads/widgets/elidedlabel.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/downloads') 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() "" ""; if(item->mimeType().startsWith("image")) - tooltip = tooltip.arg("not available"); + tooltip = tooltip.arg("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) -- cgit v1.2.1