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:
Christopher Blauvelt 2009-02-10 10:39:03 +00:00
parent ec7e1e0c73
commit 4b4141e4fa

View File

@ -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