if a custom config file is specified for the layout restore of the

corona, try to restore correctly the cashews positions too

svn path=/trunk/KDE/kdelibs/; revision=980468
This commit is contained in:
Marco Martin 2009-06-11 20:04:10 +00:00
parent d199bb679c
commit a5f83c0e2b
2 changed files with 9 additions and 3 deletions

View File

@ -401,13 +401,19 @@ void ToolBox::save(KConfigGroup &cg) const
group.writeEntry("offset", offset);
}
void ToolBox::load()
void ToolBox::load(const KConfigGroup &containmentGroup)
{
if (!d->movable) {
return;
}
KConfigGroup group = d->containment->config();
KConfigGroup group;
if (containmentGroup.isValid()) {
group = containmentGroup;
} else {
group = d->containment->config();
}
group = KConfigGroup(&group, "ToolBox");
if (!group.hasKey("corner")) {

View File

@ -87,7 +87,7 @@ public:
void setViewTransform(QTransform transforn);
void save(KConfigGroup &cg) const;
void load();
void load(const KConfigGroup &containmentGroup = KConfigGroup());
void reposition();
virtual void showToolBox() = 0;