diff --git a/dataengine.cpp b/dataengine.cpp index 6d96b9ddc..37dc60bc1 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -387,7 +387,7 @@ void DataEngine::setData(const QString &source, const Data &data) } -void DataEngine::clearData(const QString& source) +void DataEngine::removeAllData(const QString& source) { DataContainer* s = d->source(source, false); if (s) { diff --git a/dataengine.h b/dataengine.h index 96264deb6..9788c69f5 100644 --- a/dataengine.h +++ b/dataengine.h @@ -286,11 +286,11 @@ class PLASMA_EXPORT DataEngine : public QObject void setData(const QString &source, const Data &data); /** - * Clears all the data associated with a data source. + * Removes all the data associated with a data source. * * @param source the name of the data source **/ - void clearData(const QString& source); + void removeAllData(const QString& source); /** * Removes a data entry from a source diff --git a/scripting/dataenginescript.cpp b/scripting/dataenginescript.cpp index 92b0c82b3..c2ff49046 100644 --- a/scripting/dataenginescript.cpp +++ b/scripting/dataenginescript.cpp @@ -81,7 +81,7 @@ void DataEngineScript::setData(const QString &source, const QVariant &value) void DataEngineScript::clearData(const QString& source) { if (d->dataEngine) { - d->dataEngine->clearData(source); + d->dataEngine->removeAllData(source); } }