From: Jonathan Michael Thomas Date: Sun, 29 Aug 2010 17:12:25 +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/efb1cd9cad5ee540e0e37a3a6d9cbe9fe5d55268 Avoid the unnecessary construction of a KIconEffect by using the one provided by Dolphin's global KIconLoader svn path=/trunk/KDE/kdebase/apps/; revision=1169558 --- diff --git a/src/views/selectiontoggle.cpp b/src/views/selectiontoggle.cpp index 6608b5821..d802e22e0 100644 --- a/src/views/selectiontoggle.cpp +++ b/src/views/selectiontoggle.cpp @@ -162,8 +162,8 @@ void SelectionToggle::paintEvent(QPaintEvent* event) // draw the icon overlay if (m_isHovered) { - KIconEffect iconEffect; - QPixmap activeIcon = iconEffect.apply(m_icon, KIconLoader::Desktop, KIconLoader::ActiveState); + KIconEffect *iconEffect = KIconLoader::global()->iconEffect(); + QPixmap activeIcon = iconEffect->apply(m_icon, KIconLoader::Desktop, KIconLoader::ActiveState); painter.drawPixmap(0, 0, activeIcon); } else { if (m_fadingValue < 255) {