add a shadow in the panel controller
This commit is contained in:
parent
e27a2512af
commit
3fd81dbeb5
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include "panelconfigview.h"
|
#include "panelconfigview.h"
|
||||||
#include "panelview.h"
|
#include "panelview.h"
|
||||||
|
#include "panelshadows_p.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
@ -55,10 +56,13 @@ PanelConfigView::PanelConfigView(Plasma::Containment *containment, PanelView *pa
|
|||||||
engine()->rootContext()->setContextProperty("configDialog", this);
|
engine()->rootContext()->setContextProperty("configDialog", this);
|
||||||
connect(containment, &Plasma::Containment::formFactorChanged,
|
connect(containment, &Plasma::Containment::formFactorChanged,
|
||||||
this, &PanelConfigView::syncGeometry);
|
this, &PanelConfigView::syncGeometry);
|
||||||
|
|
||||||
|
PanelShadows::self()->addWindow(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
PanelConfigView::~PanelConfigView()
|
PanelConfigView::~PanelConfigView()
|
||||||
{
|
{
|
||||||
|
PanelShadows::self()->removeWindow(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PanelConfigView::init()
|
void PanelConfigView::init()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user