updateAllSources; second time i needed this tonight, so in it goes
svn path=/trunk/KDE/kdelibs/; revision=883535
This commit is contained in:
parent
f709ce0d05
commit
bfd0c6cfba
@ -379,6 +379,11 @@ void DataEngine::timerEvent(QTimerEvent *event)
|
||||
}
|
||||
|
||||
d->updateTimestamp.restart();
|
||||
updateAllSources();
|
||||
}
|
||||
|
||||
void DataEngine::updateAllSources()
|
||||
{
|
||||
QHashIterator<QString, Plasma::DataContainer*> it(d->sources);
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user