diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-06-05 12:51:07 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-05 15:18:03 +0200 |
commit | 4629dc71525a638c0bae89ad67990a1ff14ea9c4 (patch) | |
tree | ff81b70586896e7b2f1c718e3b5385fae4483cc3 /src/script/api/qscriptcontext.cpp | |
parent | f6fdd296d47e1ce44c07aab81098c20a5260f7fd (diff) | |
download | qtscript-4629dc71525a638c0bae89ad67990a1ff14ea9c4.tar.gz |
Doc: Modularize QtScript documentation.
Change-Id: I042d9bafe4f48a8cd23306f0864b6872776d0153
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'src/script/api/qscriptcontext.cpp')
-rw-r--r-- | src/script/api/qscriptcontext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/api/qscriptcontext.cpp b/src/script/api/qscriptcontext.cpp index bd9b696..8996654 100644 --- a/src/script/api/qscriptcontext.cpp +++ b/src/script/api/qscriptcontext.cpp @@ -56,7 +56,7 @@ QT_BEGIN_NAMESPACE QScriptEngine::newFunction()) that will be called from script code. For example, when the script code - \snippet doc/src/snippets/code/src_script_qscriptcontext.cpp 0 + \snippet code/src_script_qscriptcontext.cpp 0 is evaluated, a QScriptContext will be created, and the context will carry the arguments as QScriptValues; in this particular case, the @@ -76,7 +76,7 @@ QT_BEGIN_NAMESPACE native "instance method", you typically fetch the thisObject() and access one or more of its properties: - \snippet doc/src/snippets/code/src_script_qscriptcontext.cpp 1 + \snippet code/src_script_qscriptcontext.cpp 1 Use isCalledAsConstructor() to determine if the function was called as a constructor (e.g. \c{"new foo()"} (as constructor) or just @@ -100,7 +100,7 @@ QT_BEGIN_NAMESPACE evaluated in the context of the parent context, e.g. to implement an include() function: - \snippet doc/src/snippets/code/src_script_qscriptcontext.cpp 2 + \snippet code/src_script_qscriptcontext.cpp 2 Use backtrace() to get a human-readable backtrace associated with this context. This can be useful for debugging purposes when |