Files
qt-creator/tests/auto/qml/reformatter/comments.qml

34 lines
568 B
QML
Raw Normal View History

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")
}
}
}