use the overrideMask window effect
svn path=/trunk/KDE/kdelibs/; revision=1070728
This commit is contained in:
parent
321c298a96
commit
d6dd4ae24a
@ -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()));
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include <plasma/plasma.h>
|
||||
|
||||
/** @headerfile plasma/windoweffect.h <Plasma/PaintUtils> */
|
||||
/** @headerfile plasma/windoweffect.h <Plasma/WindowEffect> */
|
||||
|
||||
namespace Plasma
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user