diff options
| author | Peter Penz <[email protected]> | 2012-04-08 16:08:25 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-04-08 16:12:06 +0200 |
| commit | 05082aed16cdf7e511d9c97d0cf07e270af493e5 (patch) | |
| tree | f9cf74d24b2e70ab7773a01bc0778dad52545b5d /src/panels/information/informationpanelcontent.cpp | |
| parent | 02f122f33ce4be24cbf475b34f12c497a706b950 (diff) | |
Ignore maximum size for local files when creating previews
It is up to the plugins to decide what sensible size is required for
creating a preview, this cannot be decided by the user for all
plugins. A maximum size only makes sense for remote files, where
the user implicitely decides how much of the bandwith may be used
for having previews.
BUG: 273226
FIXED-IN: 4.9.0
Diffstat (limited to 'src/panels/information/informationpanelcontent.cpp')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index 7de6052e0..a82319ef9 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -173,8 +173,9 @@ void InformationPanelContent::showItem(const KFileItem& item) m_outdatedPreviewTimer->start(); } - KIO::PreviewJob* job = KIO::filePreview(KFileItemList() << item, QSize(m_preview->width(), m_preview->height())); + KIO::PreviewJob* job = new KIO::PreviewJob(KFileItemList() << item, QSize(m_preview->width(), m_preview->height())); job->setScaleType(KIO::PreviewJob::Unscaled); + job->setIgnoreMaximumSize(item.isLocalFile()); connect(job, SIGNAL(gotPreview(KFileItem,QPixmap)), this, SLOT(showPreview(KFileItem,QPixmap))); |
