give init() a nicer default implmementation by calling reloadConfiguration
svn path=/trunk/KDE/kdelibs/; revision=1167529
This commit is contained in:
parent
91e0556fed
commit
70fd5a6ae4
@ -351,6 +351,8 @@ void AbstractRunner::init()
|
||||
d->setupScriptSupport();
|
||||
d->script->init();
|
||||
}
|
||||
|
||||
reloadConfiguration();
|
||||
}
|
||||
|
||||
DataEngine *AbstractRunner::dataEngine(const QString &name) const
|
||||
|
@ -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();
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user