1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
/*
* Header bla
*/
import QtQuick 1.1
/**
* A very simple item
*/
Item {
/**
* The 'foo' property
*/
property int foo
signal clicked(int x, int y)
signal activated
/**
* Do something with arg1 and arg2
* @param type:string arg1 first argument
* @param type:int arg2 second argument
*/
function doSomething(arg1, arg2) {
console.log("arg1=" + arg1);
}
/**
* A badly documented function. Missing one argument and documenting a
* non-existing document
* @param type:string foo first argument
* @param type:int baz this argument does not exist
*/
function badlyDocumented(foo, bar) {
}
property string escaped: "a string \n \" \t with escaped chars"
property string block: "a string with some block {({ ] } chars"
/**
* Compute the arg^2
* @return type:int the result
*/
function square(arg) {
return arg * arg;
}
/// One-line comment
function refresh() {
}
Item {
}
property /* foo */ int /* bar */ weirdProperty /* baz */ : /* foo */ 12
}
|