API review clearSources() -> removeAllSources()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800387
This commit is contained in:
parent
7d1d889a47
commit
e435c15f14
@ -488,7 +488,7 @@ void DataEngine::removeSource(const QString& source)
|
||||
}
|
||||
}
|
||||
|
||||
void DataEngine::clearSources()
|
||||
void DataEngine::removeAllSources()
|
||||
{
|
||||
QMutableHashIterator<QString, Plasma::DataContainer*> it(d->sources);
|
||||
while (it.hasNext()) {
|
||||
|
@ -361,7 +361,7 @@ class PLASMA_EXPORT DataEngine : public QObject
|
||||
/**
|
||||
* Removes all data sources
|
||||
**/
|
||||
void clearSources();
|
||||
void removeAllSources();
|
||||
|
||||
/**
|
||||
* Sets whether or not this engine is valid, e.g. can be used.
|
||||
|
@ -124,7 +124,7 @@ void DataEngineScript::setPollingInterval(uint frequency)
|
||||
void DataEngineScript::clearSources()
|
||||
{
|
||||
if (d->dataEngine) {
|
||||
d->dataEngine->clearSources();
|
||||
d->dataEngine->removeAllSources();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user