Fix broken QJSEngine snippet in documentation.
authorMitch Curtis <mitch.curtis@digia.com>
Mon, 8 Sep 2014 09:11:50 +0000 (11:11 +0200)
committerMitch Curtis <mitch.curtis@digia.com>
Thu, 11 Sep 2014 07:26:28 +0000 (09:26 +0200)
commit4a9650233e8c01048f4058ed32999daec96c77fd
treecd5a8ce9517cb7b4cd8524e60939550fe729151d
parent7ec11872a925a1087a2fe6891eb70045922b22c8
Fix broken QJSEngine snippet in documentation.

toBoolean() isn't even a function in that class, and declaring the
button on the stack causes crashes upon closing the application.

Change-Id: I063cac2bb144cfb9786f20bbc122d5af92a4c2c0
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
src/qml/doc/snippets/code/src_script_qjsengine.cpp