2017-01-25 16:52:23 +01:00
|
|
|
import QtQuick 2.0
|
|
|
|
|
|
|
|
|
|
/* Comment 1
|
|
|
|
|
This is a multiline comment. */
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
Another multiline comment.
|
|
|
|
|
|
|
|
|
|
A slightly different formatting.
|
|
|
|
|
*/
|
|
|
|
|
Item {
|
|
|
|
|
/*
|
|
|
|
|
Indented multiline comment.
|
|
|
|
|
*/
|
2017-04-05 11:19:05 +02:00
|
|
|
|
|
|
|
|
// Comment over a signal.
|
|
|
|
|
signal foo
|
|
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
|
for (var i = model.count - 1; i >= 0; --i) // in-line comment
|
|
|
|
|
{
|
|
|
|
|
console.log("test")
|
|
|
|
|
}
|
2019-06-09 02:27:01 +03:00
|
|
|
|
|
|
|
|
var a = 1
|
|
|
|
|
if (a > 0) {
|
|
|
|
|
console.log("positive")
|
|
|
|
|
} // Final condition
|
|
|
|
|
else {
|
|
|
|
|
console.log("negative or zero")
|
|
|
|
|
}
|
2017-04-05 11:19:05 +02:00
|
|
|
}
|
2017-01-25 16:52:23 +01:00
|
|
|
}
|