From: Frederik Gladhorn Date: Mon, 12 Jan 2009 05:49:27 +0000 (+0000) Subject: I hate to have to manually put down change dates on the web site - let the writer... X-Git-Tag: v4.2.85~10 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=ce2df79ec0f3f22b827461e8bfbefffcf6bf7497;p=libqmvoc.git I hate to have to manually put down change dates on the web site - let the writer add a date to the file, so even when sent with mail it should still be ok. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=909757 --- diff --git a/keduvocdocument/keduvockvtml2writer.cpp b/keduvocdocument/keduvockvtml2writer.cpp index 7ba743e..485cc41 100644 --- a/keduvocdocument/keduvockvtml2writer.cpp +++ b/keduvocdocument/keduvockvtml2writer.cpp @@ -142,6 +142,9 @@ bool KEduVocKvtml2Writer::writeInformation( QDomElement &informationElement, con informationElement.appendChild( newTextElement( KVTML_COMMENT, m_doc->documentComment() ) ); } + QDate today = QDate::currentDate(); + informationElement.appendChild( newTextElement( KVTML_DATE, today.toString(QLatin1String("yyyy-MM-dd")) ) ); + // category if ( !m_doc->category().isEmpty() ) { informationElement.appendChild( newTextElement( KVTML_CATEGORY, m_doc->category() ) );