22#include <QDomDocument>
26using namespace Qt::StringLiterals;
35 mnl = metadataElement.namedItem( u
"author"_s );
41 mnl = metadataElement.namedItem( u
"creation"_s );
42 const QDateTime
creationDateTime = QDateTime::fromString( mnl.toElement().text(), Qt::ISODate );
54 QDomElement
author = document.createElement( u
"author"_s );
55 const QDomText authorText = document.createTextNode( mAuthor );
56 author.appendChild( authorText );
57 metadataElement.appendChild(
author );
60 QDomElement creation = document.createElement( u
"creation"_s );
62 creation.appendChild( creationText );
63 metadataElement.appendChild( creation );
81 if ( !otherProjectMetadata->author().isEmpty() )
82 mAuthor = otherProjectMetadata->author();
88 return equals( metadataOther ) &&
89 mAuthor == metadataOther.mAuthor;
virtual QString translate(const QString &context, const QString &sourceText, const char *disambiguation=nullptr, int n=-1) const =0
Translates a string using the Qt QTranslator mechanism.
A container for the context for various read/write operations on objects.
const QgsProjectTranslator * projectTranslator() const
Returns the project translator.
Used for the collecting of strings from projects for translation and creation of ts files.
void registerTranslation(const QString &context, const QString &source)
Registers the source to be translated.