panel is a Dock
This commit is contained in:
parent
790036d5f8
commit
99d49220df
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
#include <KWindowSystem>
|
||||||
#include <kwindoweffects.h>
|
#include <kwindoweffects.h>
|
||||||
|
|
||||||
#include <Plasma/Package>
|
#include <Plasma/Package>
|
||||||
@ -33,9 +34,11 @@ PanelView::PanelView(Plasma::Corona *corona, QWindow *parent)
|
|||||||
setClearBeforeRendering(true);
|
setClearBeforeRendering(true);
|
||||||
setColor(QColor(Qt::transparent));
|
setColor(QColor(Qt::transparent));
|
||||||
setFlags(Qt::FramelessWindowHint);
|
setFlags(Qt::FramelessWindowHint);
|
||||||
|
KWindowSystem::setType(winId(), NET::Dock);
|
||||||
|
|
||||||
//TODO: how to take the shape from the framesvg?
|
//TODO: how to take the shape from the framesvg?
|
||||||
KWindowEffects::enableBlurBehind(winId(), true);
|
KWindowEffects::enableBlurBehind(winId(), true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PanelView::~PanelView()
|
PanelView::~PanelView()
|
||||||
|
Loading…
Reference in New Issue
Block a user