Plasma::WindowEffects becomes KWindowEffects

We should still aks our own effect system instead of kdelibs...
icc-effect-5.14.5
Martin Gräßlin 2013-07-22 16:09:18 +02:00
parent 1d2c2d5982
commit 6a91650fa8
1 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KDE/KStandardDirs> #include <KDE/KStandardDirs>
#include <KDE/Plasma/FrameSvg> #include <KDE/Plasma/FrameSvg>
#include <KDE/Plasma/Theme> #include <KDE/Plasma/Theme>
#include <KDE/Plasma/WindowEffects> #include <kwindoweffects.h>
#include <kdeclarative.h> #include <kdeclarative.h>
// KWin // KWin
#include "thumbnailitem.h" #include "thumbnailitem.h"
@ -194,12 +194,12 @@ void DeclarativeView::showEvent(QShowEvent *event)
void DeclarativeView::resizeEvent(QResizeEvent *event) void DeclarativeView::resizeEvent(QResizeEvent *event)
{ {
if (tabBox->embedded()) { if (tabBox->embedded()) {
Plasma::WindowEffects::enableBlurBehind(winId(), false); KWindowEffects::enableBlurBehind(winId(), false);
} else { } else {
const QString maskImagePath = rootObject()->property("maskImagePath").toString(); const QString maskImagePath = rootObject()->property("maskImagePath").toString();
if (maskImagePath.isEmpty()) { if (maskImagePath.isEmpty()) {
clearMask(); clearMask();
Plasma::WindowEffects::enableBlurBehind(winId(), false); KWindowEffects::enableBlurBehind(winId(), false);
} else { } else {
const double maskWidth = rootObject()->property("maskWidth").toDouble(); const double maskWidth = rootObject()->property("maskWidth").toDouble();
const double maskHeight = rootObject()->property("maskHeight").toDouble(); const double maskHeight = rootObject()->property("maskHeight").toDouble();
@ -212,7 +212,7 @@ void DeclarativeView::resizeEvent(QResizeEvent *event)
// notice: this covers an issue with plasma detecting the compositing state. see plasmaThemeVariant() // notice: this covers an issue with plasma detecting the compositing state. see plasmaThemeVariant()
if (Workspace::self()->compositing() && effects) { if (Workspace::self()->compositing() && effects) {
// blur background?! // blur background?!
Plasma::WindowEffects::enableBlurBehind(winId(), static_cast<EffectsHandlerImpl*>(effects)->provides(Effect::Blur), mask); KWindowEffects::enableBlurBehind(winId(), static_cast<EffectsHandlerImpl*>(effects)->provides(Effect::Blur), mask);
clearMask(); clearMask();
} else } else
#endif #endif