API review SIGNAL newSource() -> sourceAdded()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800395
This commit is contained in:
parent
4f968e0195
commit
b11be618b0
@ -358,7 +358,7 @@ void DataEngine::setData(const QString& source, const QString& key, const QVaria
|
||||
s->setData(key, value);
|
||||
|
||||
if (isNew) {
|
||||
emit newSource(source);
|
||||
emit sourceAdded(source);
|
||||
}
|
||||
|
||||
d->queueUpdate();
|
||||
@ -380,7 +380,7 @@ void DataEngine::setData(const QString &source, const Data &data)
|
||||
}
|
||||
|
||||
if (isNew) {
|
||||
emit newSource(source);
|
||||
emit sourceAdded(source);
|
||||
}
|
||||
|
||||
d->queueUpdate();
|
||||
@ -414,7 +414,7 @@ void DataEngine::addSource(DataContainer* source)
|
||||
}
|
||||
|
||||
d->sources.insert(source->objectName(), source);
|
||||
emit newSource(source->objectName());
|
||||
emit sourceAdded(source->objectName());
|
||||
}
|
||||
|
||||
void DataEngine::setSourceLimit(uint limit)
|
||||
|
@ -214,7 +214,7 @@ class PLASMA_EXPORT DataEngine : public QObject
|
||||
* Emitted when a new data source is created
|
||||
* @param source the name of the new data source
|
||||
**/
|
||||
void newSource(const QString& source);
|
||||
void sourceAdded(const QString& source);
|
||||
|
||||
/**
|
||||
* Emitted when a data source is removed.
|
||||
|
Loading…
x
Reference in New Issue
Block a user