From 4b4141e4fa297ff805b06886a365ff5e9c71d371 Mon Sep 17 00:00:00 2001 From: Christopher Blauvelt Date: Tue, 10 Feb 2009 10:39:03 +0000 Subject: [PATCH] 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 --- scriptengines/javascript/simplejavascriptapplet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptengines/javascript/simplejavascriptapplet.cpp b/scriptengines/javascript/simplejavascriptapplet.cpp index 3e83eb87e..dcf8e3719 100644 --- a/scriptengines/javascript/simplejavascriptapplet.cpp +++ b/scriptengines/javascript/simplejavascriptapplet.cpp @@ -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