Use of metadata macro definitions

Replaced the metadata string with the common macro definition
This commit is contained in:
Mirco Miranda
2024-06-07 15:08:37 +00:00
committed by Albert Astals Cid
parent cb5ca7fc48
commit 7499e3b8d4
6 changed files with 39 additions and 32 deletions

View File

@ -521,7 +521,7 @@ static bool setXmpData(QImage& img, const PSDImageResourceSection& irs)
// NOTE: "XML:com.adobe.xmp" is the meta set by Qt reader when an
// XMP packet is found (e.g. when reading a PNG saved by Photoshop).
// I'm reusing the same key because a programs could search for it.
img.setText(QStringLiteral("XML:com.adobe.xmp"), xmp);
img.setText(QStringLiteral(META_KEY_XMP_ADOBE), xmp);
return true;
}