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:
Thomas Hartmann
2023-05-24 13:33:15 +02:00
parent 34a55df4ed
commit 9d37bb96c7

View File

@@ -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 =