From 28093154dc74912060d5fb7c4de5314c95bb5500 Mon Sep 17 00:00:00 2001 From: Jonathan Michael Thomas Date: Sun, 29 Aug 2010 17:10:21 +0000 Subject: [PATCH] Avoid the unnecessary construction of a KIconEffect by using the one provided by the global KIconLoader for dolphin svn path=/trunk/KDE/kdebase/apps/; revision=1169554 --- src/panels/information/informationpanelcontent.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index a4d0bca84..3b9a17960 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -324,10 +324,10 @@ void InformationPanelContent::showPreview(const KFileItem& item, void InformationPanelContent::markOutdatedPreview() { - KIconEffect iconEffect; - QPixmap disabledPixmap = iconEffect.apply(m_preview->pixmap(), - KIconLoader::Desktop, - KIconLoader::DisabledState); + KIconEffect *iconEffect = KIconLoader::global()->iconEffect(); + QPixmap disabledPixmap = iconEffect->apply(m_preview->pixmap(), + KIconLoader::Desktop, + KIconLoader::DisabledState); m_preview->setPixmap(disabledPixmap); } -- 2.47.3