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/views/tooltips/tooltipmanager.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/views/tooltips/tooltipmanager.cpp')
| -rw-r--r-- | src/views/tooltips/tooltipmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/views/tooltips/tooltipmanager.cpp b/src/views/tooltips/tooltipmanager.cpp index ed0a9c512..8b2e98dae 100644 --- a/src/views/tooltips/tooltipmanager.cpp +++ b/src/views/tooltips/tooltipmanager.cpp @@ -126,7 +126,8 @@ void ToolTipManager::startContentRetrieval() // Request a preview of the item m_fileMetaDataToolTip->setPreview(QPixmap()); - KIO::PreviewJob* job = KIO::filePreview(KFileItemList() << m_item, QSize(256, 256)); + KIO::PreviewJob* job = new KIO::PreviewJob(KFileItemList() << m_item, QSize(256, 256)); + job->setIgnoreMaximumSize(m_item.isLocalFile()); connect(job, SIGNAL(gotPreview(KFileItem,QPixmap)), this, SLOT(setPreviewPix(KFileItem,QPixmap))); |
