Set the blur region for tooltips and dialogs.
svn path=/trunk/KDE/kdelibs/; revision=1100074
This commit is contained in:
parent
caf251058b
commit
48c6fcbe8e
@ -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());
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user