updateAllSources; second time i needed this tonight, so in it goes

svn path=/trunk/KDE/kdelibs/; revision=883535
This commit is contained in:
Aaron J. Seigo 2008-11-13 07:40:57 +00:00
parent f709ce0d05
commit bfd0c6cfba
2 changed files with 10 additions and 0 deletions

View File

@ -379,6 +379,11 @@ void DataEngine::timerEvent(QTimerEvent *event)
} }
d->updateTimestamp.restart(); d->updateTimestamp.restart();
updateAllSources();
}
void DataEngine::updateAllSources()
{
QHashIterator<QString, Plasma::DataContainer*> it(d->sources); QHashIterator<QString, Plasma::DataContainer*> it(d->sources);
while (it.hasNext()) { while (it.hasNext()) {
it.next(); it.next();

View File

@ -439,6 +439,11 @@ class PLASMA_EXPORT DataEngine : public QObject
**/ **/
void removeSource(const QString &source); void removeSource(const QString &source);
/**
* Immediately updates all existing sources when called
*/
void updateAllSources();
private: private:
friend class DataEnginePrivate; friend class DataEnginePrivate;
friend class DataEngineScript; friend class DataEngineScript;