diff options
author | Jerome Pasion <jerome.pasion@digia.com> | 2013-04-19 15:38:08 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-29 14:32:59 +0200 |
commit | 8c8b826d6241a2c21359c1dbb83ba57662cc244c (patch) | |
tree | 12cf5a9427eefdb293042dc5de09a006cd68ec47 /doc/snippets/qmlapp/codingconventions/myscript.js | |
parent | 3d33e3b54f8f1a5f605b011b7cf6b7a4564f89ae (diff) | |
download | qtdoc-8c8b826d6241a2c21359c1dbb83ba57662cc244c.tar.gz |
Doc: Adding "QML Application Developer Resources" guide.
-ported from qtdeclarative.git
-fixed snippet and image paths to doc/snippets and doc/images
Because this guide will need to cover more than Qt QML and Qt Quick,
this guide does not need to be in qtdeclarative.
Change-Id: Id6a47420a1e73b5c55b7233571557e3558e82043
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
Diffstat (limited to 'doc/snippets/qmlapp/codingconventions/myscript.js')
-rw-r--r-- | doc/snippets/qmlapp/codingconventions/myscript.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/snippets/qmlapp/codingconventions/myscript.js b/doc/snippets/qmlapp/codingconventions/myscript.js new file mode 100644 index 00000000..cfa64625 --- /dev/null +++ b/doc/snippets/qmlapp/codingconventions/myscript.js @@ -0,0 +1,9 @@ +function calculateWidth(parent) +{ + var w = parent.width / 3 + // ... + // more javascript code + // ... + console.debug(w) + return w +} |