On Saturday 23 August 2008 18:51:12 Aaron J. Seigo wrote: > KConfigGroup oldConfig = old->config(); > oldConfig->copyTo(c->config()); > > this *should* bring over all the configurations: applets, wallpapers, > everything. then we can call restore on the new containment with it's own > config object ..
Now that applet configurations are also copied restore also restores applets so on containment change we get duplicate of every applet. Deleting applet settings helps, but I'm not sure if it's pretty. Index: view.cpp =================================================================== --- view.cpp (revision 852024) +++ view.cpp (working copy) @@ -258,6 +258,8 @@ oldConfig.copyTo(&newConfig); // load the configuration of the old containment into the new one + KConfigGroup applets(&newConfig, "Applets"); + applets.deleteGroup(); // delete applet settings so they don't get restored c->restore(newConfig); // move the applets from the old to the new containment One thing left is that I think layout of the Default Desktop moves applets to left corner when changing containment since it does not know we are 'restoring'. Petri
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel