diff options
| author | Jonathan Michael Thomas <[email protected]> | 2010-08-29 17:10:21 +0000 |
|---|---|---|
| committer | Jonathan Michael Thomas <[email protected]> | 2010-08-29 17:10:21 +0000 |
| commit | 28093154dc74912060d5fb7c4de5314c95bb5500 (patch) | |
| tree | f33b38132b5c4b2287aa0f1ff004e38d881a0301 /src/panels/information/informationpanelcontent.cpp | |
| parent | b905532effdec177568308258c2ad87c00c70cac (diff) | |
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
Diffstat (limited to 'src/panels/information/informationpanelcontent.cpp')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 8 |
1 files 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); } |
