22#include <QDomDocument>
26#include "moc_qgsprojectmetadata.cpp"
28using namespace Qt::StringLiterals;
37 mnl = metadataElement.namedItem( u
"author"_s );
43 mnl = metadataElement.namedItem( u
"creation"_s );
44 const QDateTime
creationDateTime = QDateTime::fromString( mnl.toElement().text(), Qt::ISODate );
56 QDomElement
author = document.createElement( u
"author"_s );
57 const QDomText authorText = document.createTextNode( mAuthor );
58 author.appendChild( authorText );
59 metadataElement.appendChild(
author );
62 QDomElement creation = document.createElement( u
"creation"_s );
64 creation.appendChild( creationText );
65 metadataElement.appendChild( creation );
83 if ( !otherProjectMetadata->author().isEmpty() )
84 mAuthor = otherProjectMetadata->author();
90 return equals( metadataOther ) && 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.