Send DataEngine::sources() and DataEngine::serviceForSource() on to the script engine if needed.
svn path=/trunk/KDE/kdelibs/; revision=881713
This commit is contained in:
parent
731ccc9f41
commit
ccb20997ab
@ -63,12 +63,20 @@ DataEngine::~DataEngine()
|
||||
|
||||
QStringList DataEngine::sources() const
|
||||
{
|
||||
return d->sources.keys();
|
||||
if (d->script) {
|
||||
return d->script->sources();
|
||||
} else {
|
||||
return d->sources.keys();
|
||||
}
|
||||
}
|
||||
|
||||
Service *DataEngine::serviceForSource(const QString &source)
|
||||
{
|
||||
return new NullService(source, this);
|
||||
if (d->script) {
|
||||
return d->script->serviceForSource(source);
|
||||
} else {
|
||||
return new NullService(source, this);
|
||||
}
|
||||
}
|
||||
|
||||
void DataEngine::connectSource(const QString &source, QObject *visualization,
|
||||
|
Loading…
Reference in New Issue
Block a user