]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/selectiontoggle.cpp
Use K_GLOBAL_STATIC for the previously committed workaround to bypass a X11-issue...
[dolphin.git] / src / views / selectiontoggle.cpp
index 6608b582126f072e2e2c0b6d26794f1dfe64ef08..d802e22e082f73396ced43d816da704f2dea3cda 100644 (file)
@@ -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) {