Set the blur region for tooltips and dialogs.

svn path=/trunk/KDE/kdelibs/; revision=1100074
This commit is contained in:
Fredrik Höglund 2010-03-06 18:25:24 +00:00
parent caf251058b
commit 48c6fcbe8e
2 changed files with 3 additions and 0 deletions

View File

@ -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());

View File

@ -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());