Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src_script_qscriptclass.cpp

//! [0]
if (extension == Callable) {
    QScriptContext *context = qvariant_cast<QScriptContext*>(argument);
    QScriptEngine *engine = context->engine();
    double sum = 0;
    for (int i = 0; i < context->argumentCount(); ++i)
        sum += context->argument(i).toNumber();
    return sum;
}
//! [0]

Generated by  Doxygen 1.6.0   Back to index