forked from qt-creator/qt-creator
AssetExport: Add typename and export type to metadata
Task-number: QDS-1556 Change-Id: I46602334d2887024a4f1f121e3f4bf804fd01846 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -61,6 +61,7 @@ const char AssetDataTag[] = "assetData";
|
||||
const char AssetPathTag[] = "assetPath";
|
||||
const char AssetBoundsTag[] = "assetBounds";
|
||||
const char OpacityTag[] = "opacity";
|
||||
const char TypeNameTag[] = "qmlType";
|
||||
|
||||
const char TextDetailsTag[] = "textDetails";
|
||||
const char FontFamilyTag[] = "fontFamily";
|
||||
|
@@ -61,6 +61,9 @@ QJsonObject QmlDesigner::ItemNodeParser::json(QmlDesigner::Component &component)
|
||||
jsonObject.insert(HeightTag, size.height());
|
||||
|
||||
jsonObject.insert(UuidTag, uuid());
|
||||
jsonObject.insert(ExportTypeTag, "child");
|
||||
jsonObject.insert(TypeNameTag, QString::fromLatin1(m_node.type()));
|
||||
|
||||
return jsonObject;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user