Connect to real window changed signal

In PanelView screenChanged is redeclared in order to create a property.
However this signal is not the one that is emitted.

This fixes the confif following the panels when moving between screens

Reviewed-by: Aleix Pol
This commit is contained in:
David Edmundson 2014-03-05 18:41:50 +01:00
parent b5a04c55ea
commit a8ddfe1def

View File

@ -44,7 +44,7 @@ PanelConfigView::PanelConfigView(Plasma::Containment *containment, PanelView *pa
m_panelView(panelView)
{
setScreen(panelView->screen());
connect(panelView, &PanelView::screenChanged, [=](QScreen *screen){setScreen(screen); syncGeometry();});
connect(panelView, &QWindow::screenChanged, [=](QScreen *screen){setScreen(screen); syncGeometry();});
setFlags(Qt::BypassWindowManagerHint);