setProperty can't take (QString, Qstring) as arguments so convert the second QString to a
QScriptValue. This allows kdebase to compile. svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=924164
This commit is contained in:
parent
ec7e1e0c73
commit
4b4141e4fa
@ -639,7 +639,7 @@ void SimpleJavaScriptApplet::installWidgets(QScriptEngine *engine)
|
||||
#ifndef HAVE_PHONON
|
||||
QScriptValue fun = engine->newFunction(notSupported);
|
||||
fun.setProperty( QString("message"),
|
||||
i18n("Phonon support was not available"),
|
||||
QScriptValue(engine, i18n("Phonon support was not available")),
|
||||
QScriptValue::ReadOnly | QScriptValue::Undeletable | QScriptValue::SkipInEnumeration );
|
||||
globalObject.setProperty(QString("VideoWidget"), fun);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user