diff --git a/datacontainer.cpp b/datacontainer.cpp index b10b95a2e..8d9efccdf 100644 --- a/datacontainer.cpp +++ b/datacontainer.cpp @@ -114,7 +114,7 @@ void DataContainer::checkUsage() if (d->relays.count() < 1 && receivers(SIGNAL(dataUpdated(QString, Plasma::DataEngine::Data))) < 1) { // DO NOT CALL ANYTHING AFTER THIS LINE AS IT MAY GET DELETED! - emit unused(objectName()); + emit becameUnused(objectName()); } } diff --git a/datacontainer.h b/datacontainer.h index 675acb50c..5e9ff3973 100644 --- a/datacontainer.h +++ b/datacontainer.h @@ -109,7 +109,7 @@ class PLASMA_EXPORT DataContainer : public QObject public Q_SLOTS: /** * Check if the DataContainer is still in use. - * If not the signal "unused" will be emitted. + * If not the signal "becameUnused" will be emitted. * Warning: The DataContainer may be invalid after calling this function. */ void checkUsage(); @@ -138,7 +138,7 @@ class PLASMA_EXPORT DataContainer : public QObject /** * Emitted when this source becomes unused **/ - void unused(const QString& source); + void becameUnused(const QString& source); /** * Emitted when the source, usually due to an internal timer firing, diff --git a/dataengine.cpp b/dataengine.cpp index 00076c8cf..0a814f95e 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -175,7 +175,7 @@ class DataEngine::Private if (newSource) { *newSource = true; } - connect(s, SIGNAL(unused(QString)), engine, SLOT(removeSource(QString))); + connect(s, SIGNAL(becameUnused(QString)), engine, SLOT(removeSource(QString))); } } }