[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Mon Dec 20 12:50:00 UTC 2004
CVS commit by okellogg:
saveToXMI(): Supply a value for the "timestamp" attribute of <XMI>.
M +3 -1 umldoc.cpp 1.220
--- kdesdk/umbrello/umbrello/umldoc.cpp #1.219:1.220
@@ -18,4 +18,5 @@
#include <qpainter.h>
#include <qtimer.h>
+#include <qdatetime.h>
#include <qbuffer.h>
#include <qdir.h>
@@ -1747,5 +1748,6 @@ void UMLDoc::saveToXMI(QIODevice& file)
QDomElement root = doc.createElement( "XMI" );
root.setAttribute( "xmi.version", "1.2" );
- root.setAttribute( "timestamp", "");
+ QDateTime now = QDateTime::currentDateTime();
+ root.setAttribute( "timestamp", now.toString(Qt::ISODate));
root.setAttribute( "verified", "false");
root.setAttribute( "xmlns:UML", "http://schema.omg.org/spec/UML/1.3");
More information about the umbrello-devel
mailing list