give init() a nicer default implmementation by calling reloadConfiguration

svn path=/trunk/KDE/kdelibs/; revision=1167529
This commit is contained in:
Aaron J. Seigo 2010-08-24 20:38:35 +00:00
parent 91e0556fed
commit 70fd5a6ae4
2 changed files with 7 additions and 0 deletions

View File

@ -351,6 +351,8 @@ void AbstractRunner::init()
d->setupScriptSupport();
d->script->init();
}
reloadConfiguration();
}
DataEngine *AbstractRunner::dataEngine(const QString &name) const

View File

@ -439,6 +439,11 @@ class PLASMA_EXPORT AbstractRunner : public QObject
Q_INVOKABLE DataEngine *dataEngine(const QString &name) const;
protected Q_SLOTS:
/**
* Reimplement this slot to run any initialization routines on first load.
* By default, it calls reloadConfiguration(); for scripted Runners this
* method also sets up the ScriptEngine.
*/
void init();
/**