From 48c6fcbe8e2b8107d2d70028868cfb43eecf932e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Sat, 6 Mar 2010 18:25:24 +0000 Subject: [PATCH] Set the blur region for tooltips and dialogs. svn path=/trunk/KDE/kdelibs/; revision=1100074 --- dialog.cpp | 2 ++ private/tooltip.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/dialog.cpp b/dialog.cpp index dadd405a9..03f60b0a2 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -109,6 +109,7 @@ void DialogPrivate::themeChanged() //kDebug() << leftWidth << topHeight << rightWidth << bottomHeight; if (Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) { + WindowEffects::enableBlurBehind(q->winId(), true, background->mask()); q->clearMask(); } else { q->setMask(background->mask()); @@ -474,6 +475,7 @@ void Dialog::resizeEvent(QResizeEvent *e) d->background->resizeFrame(e->size()); if (Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) { + WindowEffects::enableBlurBehind(winId(), true, d->background->mask()); clearMask(); } else { setMask(d->background->mask()); diff --git a/private/tooltip.cpp b/private/tooltip.cpp index ac0987839..c826c71e1 100644 --- a/private/tooltip.cpp +++ b/private/tooltip.cpp @@ -357,6 +357,7 @@ void ToolTip::resizeEvent(QResizeEvent *e) QWidget::resizeEvent(e); d->background->resizeFrame(size()); if (Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) { + WindowEffects::enableBlurBehind(winId(), true, d->background->mask()); clearMask(); } else { setMask(d->background->mask());