Warning, /sdk/doxyqml/tests/manual/Simple.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * Header bla
0003  */
0004 import QtQuick 1.1
0005 
0006 /**
0007  * A very simple item
0008  */
0009 Item {
0010     /**
0011      * The 'foo' property
0012      */
0013     property int foo
0014 
0015     signal clicked(int x, int y)
0016 
0017     signal activated
0018 
0019     /**
0020      * Do something with arg1 and arg2
0021      * @param type:string arg1 first argument
0022      * @param type:int arg2 second argument
0023      */
0024     function doSomething(arg1, arg2) {
0025         console.log("arg1=" + arg1);
0026     }
0027 
0028     /**
0029      * A badly documented function. Missing one argument and documenting a
0030      * non-existing document
0031      * @param type:string foo first argument
0032      * @param type:int baz this argument does not exist
0033      */
0034     function badlyDocumented(foo, bar) {
0035     }
0036 
0037     property string escaped: "a string \n \" \t with escaped chars"
0038     property string block: "a string with some block {({ ] } chars"
0039 
0040     /**
0041      * Compute the arg^2
0042      * @return type:int the result
0043      */
0044     function square(arg) {
0045         return arg * arg;
0046     }
0047 
0048     /// One-line comment
0049     function refresh() {
0050     }
0051 
0052     Item {
0053     }
0054 
0055     property /* foo */ int /* bar */ weirdProperty /* baz */ : /* foo */ 12
0056 }