save/restore containment context (activity)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849513
This commit is contained in:
parent
03047048bc
commit
84007a813a
@ -246,6 +246,7 @@ void Containment::restore(KConfigGroup &group)
|
|||||||
setLocation((Plasma::Location)group.readEntry("location", (int)d->location));
|
setLocation((Plasma::Location)group.readEntry("location", (int)d->location));
|
||||||
setFormFactor((Plasma::FormFactor)group.readEntry("formfactor", (int)d->formFactor));
|
setFormFactor((Plasma::FormFactor)group.readEntry("formfactor", (int)d->formFactor));
|
||||||
setScreen(group.readEntry("screen", d->screen));
|
setScreen(group.readEntry("screen", d->screen));
|
||||||
|
setContext(group.readEntry("context", QString()));
|
||||||
|
|
||||||
flushPendingConstraintsEvents();
|
flushPendingConstraintsEvents();
|
||||||
//kDebug() << "Containment" << id() << "geometry is" << geometry() << "config'd with" << appletConfig.name();
|
//kDebug() << "Containment" << id() << "geometry is" << geometry() << "config'd with" << appletConfig.name();
|
||||||
@ -268,6 +269,7 @@ void Containment::save(KConfigGroup &g) const
|
|||||||
group.writeEntry("screen", d->screen);
|
group.writeEntry("screen", d->screen);
|
||||||
group.writeEntry("formfactor", (int)d->formFactor);
|
group.writeEntry("formfactor", (int)d->formFactor);
|
||||||
group.writeEntry("location", (int)d->location);
|
group.writeEntry("location", (int)d->location);
|
||||||
|
group.writeEntry("context", d->context);
|
||||||
saveContents(group);
|
saveContents(group);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user