From bfd0c6cfba9683dfdb0e223c4000e4dcccfd4b16 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 13 Nov 2008 07:40:57 +0000 Subject: [PATCH] updateAllSources; second time i needed this tonight, so in it goes svn path=/trunk/KDE/kdelibs/; revision=883535 --- dataengine.cpp | 5 +++++ dataengine.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dataengine.cpp b/dataengine.cpp index 821d8e027..db44f1b83 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -379,6 +379,11 @@ void DataEngine::timerEvent(QTimerEvent *event) } d->updateTimestamp.restart(); + updateAllSources(); +} + +void DataEngine::updateAllSources() +{ QHashIterator it(d->sources); while (it.hasNext()) { it.next(); diff --git a/dataengine.h b/dataengine.h index 93b09302e..efdf02802 100644 --- a/dataengine.h +++ b/dataengine.h @@ -439,6 +439,11 @@ class PLASMA_EXPORT DataEngine : public QObject **/ void removeSource(const QString &source); + /** + * Immediately updates all existing sources when called + */ + void updateAllSources(); + private: friend class DataEnginePrivate; friend class DataEngineScript;