removing panels works

This commit is contained in:
Marco Martin 2013-10-30 18:37:40 +01:00
parent 33e4c1cd44
commit 512aecb803
2 changed files with 13 additions and 0 deletions

View File

@ -381,6 +381,9 @@ void PanelView::restore()
connect(containment(), &Plasma::Containment::uiReadyChanged,
this, &PanelView::setVisible);
connect(containment(), SIGNAL(destroyed(QObject *)),
this, SLOT(deleteLater()));
static const int MINSIZE = 10;
m_offset = config().readEntry<int>("offset", 0);

View File

@ -720,6 +720,16 @@ void ShellCorona::addPanel(const QString &plugin)
loc = availableLocations.first();
}
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;