removing panels works
This commit is contained in:
parent
33e4c1cd44
commit
512aecb803
@ -381,6 +381,9 @@ void PanelView::restore()
|
|||||||
connect(containment(), &Plasma::Containment::uiReadyChanged,
|
connect(containment(), &Plasma::Containment::uiReadyChanged,
|
||||||
this, &PanelView::setVisible);
|
this, &PanelView::setVisible);
|
||||||
|
|
||||||
|
connect(containment(), SIGNAL(destroyed(QObject *)),
|
||||||
|
this, SLOT(deleteLater()));
|
||||||
|
|
||||||
static const int MINSIZE = 10;
|
static const int MINSIZE = 10;
|
||||||
|
|
||||||
m_offset = config().readEntry<int>("offset", 0);
|
m_offset = config().readEntry<int>("offset", 0);
|
||||||
|
@ -720,6 +720,16 @@ void ShellCorona::addPanel(const QString &plugin)
|
|||||||
loc = availableLocations.first();
|
loc = availableLocations.first();
|
||||||
}
|
}
|
||||||
panel->setLocation(loc);
|
panel->setLocation(loc);
|
||||||
|
switch (loc) {
|
||||||
|
case Plasma::Types::LeftEdge:
|
||||||
|
case Plasma::Types::RightEdge:
|
||||||
|
panel->setFormFactor(Plasma::Types::Vertical);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
panel->setFormFactor(Plasma::Types::Horizontal);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
panel->setScreen(0);
|
||||||
|
|
||||||
|
|
||||||
d->waitingPanels << panel;
|
d->waitingPanels << panel;
|
||||||
|
Loading…
Reference in New Issue
Block a user