API reviews:
loadApplets() and saveApplets() became loadLayout() and saveLayout() svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800738
This commit is contained in:
parent
eb378c78fd
commit
8387f8651e
@ -82,7 +82,7 @@ public:
|
|||||||
q->setBackgroundBrush(tile);
|
q->setBackgroundBrush(tile);
|
||||||
}
|
}
|
||||||
|
|
||||||
void saveApplets(KSharedConfigPtr cg) const
|
void saveLayout(KSharedConfigPtr cg) const
|
||||||
{
|
{
|
||||||
KConfigGroup containmentsGroup(cg, "Containments");
|
KConfigGroup containmentsGroup(cg, "Containments");
|
||||||
foreach (const Containment *containment, containments) {
|
foreach (const Containment *containment, containments) {
|
||||||
@ -142,7 +142,7 @@ QString Corona::appletMimeType()
|
|||||||
return d->mimetype;
|
return d->mimetype;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Corona::saveApplets(const QString &configName) const
|
void Corona::saveLayout(const QString &configName) const
|
||||||
{
|
{
|
||||||
KSharedConfigPtr c;
|
KSharedConfigPtr c;
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ void Corona::saveApplets(const QString &configName) const
|
|||||||
c = KSharedConfig::openConfig(configName);
|
c = KSharedConfig::openConfig(configName);
|
||||||
}
|
}
|
||||||
|
|
||||||
d->saveApplets(c);
|
d->saveLayout(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Corona::scheduleConfigSync() const
|
void Corona::scheduleConfigSync() const
|
||||||
@ -177,7 +177,7 @@ bool appletConfigLessThan(const KConfigGroup &c1, const KConfigGroup &c2)
|
|||||||
return p1.y() < p2.y();
|
return p1.y() < p2.y();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Corona::loadApplets(const QString& configName)
|
void Corona::loadLayout(const QString& configName)
|
||||||
{
|
{
|
||||||
clearContainments();
|
clearContainments();
|
||||||
KSharedConfigPtr c;
|
KSharedConfigPtr c;
|
||||||
|
6
corona.h
6
corona.h
@ -78,13 +78,13 @@ public Q_SLOTS:
|
|||||||
* @param config the name of the config file to load from,
|
* @param config the name of the config file to load from,
|
||||||
* or the default config file if QString()
|
* or the default config file if QString()
|
||||||
*/
|
*/
|
||||||
void loadApplets(const QString &config = QString());
|
void loadLayout(const QString &config = QString());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save applets to file
|
* Save applets layout to file
|
||||||
* @arg config the file to save to, or the default config file if QString()
|
* @arg config the file to save to, or the default config file if QString()
|
||||||
*/
|
*/
|
||||||
void saveApplets(const QString &config = QString()) const;
|
void saveLayout(const QString &config = QString()) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when there have been changes made to configuration that should be saved
|
* Called when there have been changes made to configuration that should be saved
|
||||||
|
Loading…
Reference in New Issue
Block a user