use the overrideMask window effect

svn path=/trunk/KDE/kdelibs/; revision=1070728
This commit is contained in:
Marco Martin 2010-01-06 16:00:53 +00:00
parent 321c298a96
commit d6dd4ae24a
3 changed files with 4 additions and 3 deletions

View File

@ -289,6 +289,7 @@ Dialog::Dialog(QWidget *parent, Qt::WindowFlags f)
QPalette pal = palette();
pal.setColor(backgroundRole(), Qt::transparent);
setPalette(pal);
WindowEffects::overrideShadow(winId(), true);
d->adjustViewTimer = new QTimer(this);
d->adjustViewTimer->setSingleShot(true);
@ -438,7 +439,7 @@ void Dialog::resizeEvent(QResizeEvent *e)
d->background->resizeFrame(e->size());
if (Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) {
setMask(d->background->mask());
clearMask();
} else {
setMask(QRect(QPoint(0, 0), size()));
}

View File

@ -279,7 +279,7 @@ void highlightWindows(WId controller, const QList<WId> &ids)
#endif
}
void shadowOverride(WId window, bool override)
void overrideShadow(WId window, bool override)
{
#ifdef Q_WS_X11
Display *dpy = QX11Info::display();

View File

@ -24,7 +24,7 @@
#include <plasma/plasma.h>
/** @headerfile plasma/windoweffect.h <Plasma/PaintUtils> */
/** @headerfile plasma/windoweffect.h <Plasma/WindowEffect> */
namespace Plasma
{