the object, not its data. (if the trolls themselves can't get this stuff right ... ;)

svn path=/trunk/KDE/kdebase/runtime/; revision=1073565
This commit is contained in:
Aaron J. Seigo 2010-01-12 11:11:35 +00:00
parent 6d466c00c5
commit 1ea98c3161

View File

@ -234,7 +234,7 @@ QScriptValue ByteArrayClass::toScriptValue(QScriptEngine *eng, const QByteArray
void ByteArrayClass::fromScriptValue(const QScriptValue &obj, QByteArray &ba)
{
ba = qvariant_cast<QByteArray>(obj.data().toVariant());
ba = obj.toVariant().toByteArray();
}