forked from qt-creator/qt-creator
Change-Id: I0461c4616cff15b7010e3844850d32e9f07469ea Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
34 lines
568 B
QML
34 lines
568 B
QML
import QtQuick 2.0
|
|
|
|
/* Comment 1
|
|
This is a multiline comment. */
|
|
|
|
/*
|
|
Another multiline comment.
|
|
|
|
A slightly different formatting.
|
|
*/
|
|
Item {
|
|
/*
|
|
Indented multiline comment.
|
|
*/
|
|
|
|
// Comment over a signal.
|
|
signal foo
|
|
|
|
function test() {
|
|
for (var i = model.count - 1; i >= 0; --i) // in-line comment
|
|
{
|
|
console.log("test")
|
|
}
|
|
|
|
var a = 1
|
|
if (a > 0) {
|
|
console.log("positive")
|
|
} // Final condition
|
|
else {
|
|
console.log("negative or zero")
|
|
}
|
|
}
|
|
}
|