enable blur behind
This commit is contained in:
parent
31838228d4
commit
799a5989d9
@ -31,6 +31,7 @@
|
||||
#include <QScreen>
|
||||
|
||||
#include <KWindowSystem>
|
||||
#include <kwindoweffects.h>
|
||||
|
||||
#include <Plasma/Corona>
|
||||
// #include <Plasma/Dialog>
|
||||
@ -323,6 +324,7 @@ void DialogProxy::syncMainItemToSize()
|
||||
m_frameSvgItem->setY(0);
|
||||
m_frameSvgItem->setWidth(width());
|
||||
m_frameSvgItem->setHeight(height());
|
||||
KWindowEffects::enableBlurBehind(winId(), true, m_frameSvgItem->frameSvg()->mask());
|
||||
|
||||
if (m_mainItem) {
|
||||
m_mainItem.data()->setX(m_frameSvgItem->margins()->left());
|
||||
|
@ -209,6 +209,11 @@ qreal FrameSvgItem::implicitHeight() const
|
||||
return QQuickItem::implicitHeight();
|
||||
}
|
||||
|
||||
Plasma::FrameSvg *FrameSvgItem::frameSvg() const
|
||||
{
|
||||
return m_frameSvg;
|
||||
}
|
||||
|
||||
} // Plasma namespace
|
||||
|
||||
#include "framesvgitem.moc"
|
||||
|
@ -138,6 +138,11 @@ public:
|
||||
void setImplicitHeight(qreal height);
|
||||
qreal implicitHeight() const;
|
||||
|
||||
/**
|
||||
* Only to be used from inside this library, is not intended to be invokable
|
||||
*/
|
||||
Plasma::FrameSvg *frameSvg() const;
|
||||
|
||||
signals:
|
||||
void imagePathChanged();
|
||||
void prefixChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user