diff options
| author | Jonathan Michael Thomas <[email protected]> | 2010-08-29 17:12:25 +0000 |
|---|---|---|
| committer | Jonathan Michael Thomas <[email protected]> | 2010-08-29 17:12:25 +0000 |
| commit | efb1cd9cad5ee540e0e37a3a6d9cbe9fe5d55268 (patch) | |
| tree | 94056d635d6f7585bee4909628cedd4a6950c286 /src/views/selectiontoggle.cpp | |
| parent | 28093154dc74912060d5fb7c4de5314c95bb5500 (diff) | |
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
Diffstat (limited to 'src/views/selectiontoggle.cpp')
| -rw-r--r-- | src/views/selectiontoggle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
