enable blur behind

This commit is contained in:
Marco Martin 2013-02-21 14:58:09 +01:00
parent 31838228d4
commit 799a5989d9
3 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,7 @@
#include <QScreen> #include <QScreen>
#include <KWindowSystem> #include <KWindowSystem>
#include <kwindoweffects.h>
#include <Plasma/Corona> #include <Plasma/Corona>
// #include <Plasma/Dialog> // #include <Plasma/Dialog>
@ -323,6 +324,7 @@ void DialogProxy::syncMainItemToSize()
m_frameSvgItem->setY(0); m_frameSvgItem->setY(0);
m_frameSvgItem->setWidth(width()); m_frameSvgItem->setWidth(width());
m_frameSvgItem->setHeight(height()); m_frameSvgItem->setHeight(height());
KWindowEffects::enableBlurBehind(winId(), true, m_frameSvgItem->frameSvg()->mask());
if (m_mainItem) { if (m_mainItem) {
m_mainItem.data()->setX(m_frameSvgItem->margins()->left()); m_mainItem.data()->setX(m_frameSvgItem->margins()->left());

View File

@ -209,6 +209,11 @@ qreal FrameSvgItem::implicitHeight() const
return QQuickItem::implicitHeight(); return QQuickItem::implicitHeight();
} }
Plasma::FrameSvg *FrameSvgItem::frameSvg() const
{
return m_frameSvg;
}
} // Plasma namespace } // Plasma namespace
#include "framesvgitem.moc" #include "framesvgitem.moc"

View File

@ -138,6 +138,11 @@ public:
void setImplicitHeight(qreal height); void setImplicitHeight(qreal height);
qreal implicitHeight() const; qreal implicitHeight() const;
/**
* Only to be used from inside this library, is not intended to be invokable
*/
Plasma::FrameSvg *frameSvg() const;
signals: signals:
void imagePathChanged(); void imagePathChanged();
void prefixChanged(); void prefixChanged();