and now the engine as parameter and lo it builds again

svn path=/branches/KDE/4.4/kdebase/runtime/; revision=1073898
This commit is contained in:
Aaron J. Seigo 2010-01-13 07:22:57 +00:00
parent 33091bd856
commit 8a90de27ef

View File

@ -742,7 +742,7 @@ QScriptValue SimpleJavaScriptApplet::newPlasmaSvg(QScriptContext *context, QScri
Svg *svg = new Svg(parent); Svg *svg = new Svg(parent);
svg->setImagePath(parentedToApplet ? findSvg(engine, filename) : filename); svg->setImagePath(parentedToApplet ? findSvg(engine, filename) : filename);
QScriptValue fun = engine->newQObject(svg); QScriptValue fun = engine->newQObject(svg);
registerEnums(fun, *svg->metaObject()); registerEnums(engine, fun, *svg->metaObject());
return fun; return fun;
} }
@ -761,7 +761,7 @@ QScriptValue SimpleJavaScriptApplet::newPlasmaFrameSvg(QScriptContext *context,
QScriptValue fun = engine->newQObject(frameSvg); QScriptValue fun = engine->newQObject(frameSvg);
// FIXME: why is this necessary when it is clearly declared in FrameSvg's moc? // FIXME: why is this necessary when it is clearly declared in FrameSvg's moc?
registerEnums(fun, *frameSvg->metaObject()); registerEnums(engine, fun, *frameSvg->metaObject());
return fun; return fun;
} }