20#include <QDomDocument>
29 mnl = metadataElement.namedItem( QStringLiteral(
"author" ) );
30 mAuthor = mnl.toElement().text();
33 mnl = metadataElement.namedItem( QStringLiteral(
"creation" ) );
34 mCreationDateTime = QDateTime::fromString( mnl.toElement().text(), Qt::ISODate );
44 QDomElement
author = document.createElement( QStringLiteral(
"author" ) );
45 const QDomText authorText = document.createTextNode( mAuthor );
46 author.appendChild( authorText );
47 metadataElement.appendChild(
author );
50 QDomElement creation = document.createElement( QStringLiteral(
"creation" ) );
51 const QDomText creationText = document.createTextNode( mCreationDateTime.toString( Qt::ISODate ) );
52 creation.appendChild( creationText );
53 metadataElement.appendChild( creation );
64 if ( !otherProjectMetadata->author().isEmpty() )
65 mAuthor = otherProjectMetadata->author();
67 if ( otherProjectMetadata->creationDateTime().isValid() )
68 mCreationDateTime = otherProjectMetadata->creationDateTime();
74 return equals( metadataOther ) &&
75 mAuthor == metadataOther.mAuthor &&
76 mCreationDateTime == metadataOther.mCreationDateTime ;
96 return mCreationDateTime;