forked from qt-creator/qt-creator
QmlJS: Fix code re-formatter for property
Fixes: QTCREATORBUG-22515 Change-Id: Ie560f8cf9e43081a37f2210ea2f6df741f14ced6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -633,10 +633,10 @@ protected:
|
||||
if (!ast->typeModifier.isNull()) {
|
||||
out(ast->typeModifierToken);
|
||||
out("<");
|
||||
out(ast->typeToken);
|
||||
accept(ast->memberType);
|
||||
out(">");
|
||||
} else {
|
||||
out(ast->typeToken);
|
||||
accept(ast->memberType);
|
||||
}
|
||||
out(" ");
|
||||
if (ast->statement) {
|
||||
@@ -1329,10 +1329,9 @@ protected:
|
||||
{
|
||||
for (FormalParameterList *it = ast; it; it = it->next) {
|
||||
out(it->element->bindingIdentifier.toString()); // TODO
|
||||
if (it->next) {
|
||||
if (it->next)
|
||||
out(", ");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
@@ -9,6 +9,8 @@ Text {
|
||||
property int foo
|
||||
property alias bar: x
|
||||
property list<QtObject> pro
|
||||
property Part.Particles particles
|
||||
property list<Part.Particles> particlesList
|
||||
default property int def
|
||||
property var baz: Rectangle {
|
||||
width: 20
|
||||
|
Reference in New Issue
Block a user