set and use the default containment plugin

svn path=/trunk/KDE/kdebase/runtime/; revision=1213882
This commit is contained in:
Aaron J. Seigo 2011-01-12 00:09:23 +00:00
parent a13812359a
commit 2b3b038f3f

View File

@ -41,13 +41,14 @@ void PlasmaKPartCorona::init()
{
enableAction("Lock Widgets", false);
enableAction("Shortcut Settings", false);
setDefaultContainmentPlugin("newspaper");
}
void PlasmaKPartCorona::loadDefaultLayout()
{
// used to force a save into the config file
KConfigGroup invalidConfig;
Plasma::Containment* c = addContainment("newspaper");
Plasma::Containment* c = addContainment(QString());
if (!c) {
// do some error reporting?