Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/script/bridge/qscriptvariant.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    3030#include "Error.h"
    3131#include "PrototypeFunction.h"
     32
     33
    3234#include "JSString.h"
    3335
     
    120122    if (value.isObject()) {
    121123        result = v.toString();
    122         if (result.isEmpty() && !v.canConvert(QVariant::String)) {
    123             result = "QVariant(";
    124             result += v.typeName();
    125             result += ")";
    126         }
     124        if (result.isEmpty() && !v.canConvert(QVariant::String))
     125            result = QString::fromLatin1("QVariant(%0)").arg(QString::fromLatin1(v.typeName()));
    127126    } else {
    128127        result = value.toString(exec);
     
    134133{
    135134    const QVariant &variant1 = value();
    136     return variant1 == scriptEngineFromExec(exec)->scriptValueFromJSCValue(o2).toVariant();
     135    return variant1 == );
    137136}
    138137
     
    143142    setDelegate(new QVariantDelegate(QVariant()));
    144143
    145     putDirectFunction(exec, new (exec) JSC::PrototypeFunction(exec, prototypeFunctionStructure, 0, exec->propertyNames().toString, variantProtoFuncToString), JSC::DontEnum);
    146     putDirectFunction(exec, new (exec) JSC::PrototypeFunction(exec, prototypeFunctionStructure, 0, exec->propertyNames().valueOf, variantProtoFuncValueOf), JSC::DontEnum);
     144    putDirectFunction(exec, new (exec) JSC::(exec, prototypeFunctionStructure, 0, exec->propertyNames().toString, variantProtoFuncToString), JSC::DontEnum);
     145    putDirectFunction(exec, new (exec) JSC::(exec, prototypeFunctionStructure, 0, exec->propertyNames().valueOf, variantProtoFuncValueOf), JSC::DontEnum);
    147146}
    148147
Note: See TracChangeset for help on using the changeset viewer.