From: Jonathan Michael Thomas Date: Sun, 29 Aug 2010 17:10:21 +0000 (+0000) Subject: Avoid the unnecessary construction of a KIconEffect by using the one provided by... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/28093154dc74912060d5fb7c4de5314c95bb5500?ds=inline 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 --- 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); }