Last change
on this file since 5 was 2, checked in by Dmitry A. Kuminov, 16 years ago |
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
|
File size:
305 bytes
|
Line | |
---|
1 | //! [0]
|
---|
2 | if (extension == Callable) {
|
---|
3 | QScriptContext *context = qvariant_cast<QScriptContext*>(argument);
|
---|
4 | QScriptEngine *engine = context->engine();
|
---|
5 | double sum = 0;
|
---|
6 | for (int i = 0; i < context->argumentCount(); ++i)
|
---|
7 | sum += context->argument(i).toNumber();
|
---|
8 | return sum;
|
---|
9 | }
|
---|
10 | //! [0]
|
---|
Note:
See
TracBrowser
for help on using the repository browser.