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:
David Faure 2009-01-08 20:46:10 +00:00
parent d4173fa3f1
commit b44364bd11

View file

@ -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);