22#include <QDomDocument>
32 mnl = metadataElement.namedItem( QStringLiteral(
"author" ) );
38 mnl = metadataElement.namedItem( QStringLiteral(
"creation" ) );
39 const QDateTime
creationDateTime = QDateTime::fromString( mnl.toElement().text(), Qt::ISODate );
51 QDomElement
author = document.createElement( QStringLiteral(
"author" ) );
52 const QDomText authorText = document.createTextNode( mAuthor );
53 author.appendChild( authorText );
54 metadataElement.appendChild(
author );
57 QDomElement creation = document.createElement( QStringLiteral(
"creation" ) );
59 creation.appendChild( creationText );
60 metadataElement.appendChild( creation );
78 if ( !otherProjectMetadata->author().isEmpty() )
79 mAuthor = otherProjectMetadata->author();
85 return equals( metadataOther ) &&
86 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.