mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Small optimization found while having debug output in kfileitem: pass the KFileItem rather than the URL,
so that previewjob doesn't have to determine the item's mimetype again. svn path=/trunk/KDE/kdebase/apps/; revision=907877
This commit is contained in:
parent
d4173fa3f1
commit
b44364bd11
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ void ToolTipManager::showToolTip(KToolTipItem* tip)
|
|||
void ToolTipManager::startPreviewJob()
|
||||
{
|
||||
m_generatingPreview = true;
|
||||
KIO::PreviewJob* job = KIO::filePreview(KUrl::List() << m_item.url(),
|
||||
KIO::PreviewJob* job = KIO::filePreview(KFileItemList() << m_item,
|
||||
PREVIEW_WIDTH,
|
||||
PREVIEW_HEIGHT);
|
||||
job->setIgnoreMaximumSize(true);
|
||||
|
|
Loading…
Reference in a new issue