20#include <QDomDocument>
29 mnl = metadataElement.namedItem( QStringLiteral(
"author" ) );
30 mAuthor = mnl.toElement().text();
35 mnl = metadataElement.namedItem( QStringLiteral(
"creation" ) );
36 const QDateTime
creationDateTime = QDateTime::fromString( mnl.toElement().text(), Qt::ISODate );
48 QDomElement
author = document.createElement( QStringLiteral(
"author" ) );
49 const QDomText authorText = document.createTextNode( mAuthor );
50 author.appendChild( authorText );
51 metadataElement.appendChild(
author );
54 QDomElement creation = document.createElement( QStringLiteral(
"creation" ) );
56 creation.appendChild( creationText );
57 metadataElement.appendChild( creation );
68 if ( !otherProjectMetadata->author().isEmpty() )
69 mAuthor = otherProjectMetadata->author();
75 return equals( metadataOther ) &&
76 mAuthor == metadataOther.mAuthor;