add a shadow in the panel controller

This commit is contained in:
Marco Martin 2014-02-21 11:36:54 +01:00
parent e27a2512af
commit 3fd81dbeb5

View File

@ -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()