forked from qt-creator/qt-creator
QmlProject: Fix comments in converter
Change-Id: Iedf7997e50031659847d05bccd7cf48e116c9809 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
This commit is contained in:
@@ -43,7 +43,7 @@ QString jsonToQmlProject(const QJsonObject &rootObject)
|
|||||||
auto appendBreak = [&ts]() { ts << Qt::endl; };
|
auto appendBreak = [&ts]() { ts << Qt::endl; };
|
||||||
|
|
||||||
auto appendComment = [&ts, &indentationLevel](const QString &comment) {
|
auto appendComment = [&ts, &indentationLevel](const QString &comment) {
|
||||||
ts << QString(" ").repeated(indentationLevel * 4) << "\\\\ " << comment << Qt::endl;
|
ts << QString(" ").repeated(indentationLevel * 4) << "// " << comment << Qt::endl;
|
||||||
};
|
};
|
||||||
|
|
||||||
auto appendItem =
|
auto appendItem =
|
||||||
|
|||||||
Reference in New Issue
Block a user