diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-10-18 11:22:40 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-10-18 11:22:40 (GMT) |
commit | 410f203fd3542af182a6fe4406cc5094b65a90f8 (patch) | |
tree | ed9911a06347fcad14f7aedab6b98c3f366078dc /tools/qdoc3/node.cpp | |
parent | 65daf75c29f1865bf0eb51570c09a304fefb25ad (diff) | |
download | Qt-410f203fd3542af182a6fe4406cc5094b65a90f8.zip Qt-410f203fd3542af182a6fe4406cc5094b65a90f8.tar.gz Qt-410f203fd3542af182a6fe4406cc5094b65a90f8.tar.bz2 |
qdoc: Changed GUIDs from "{xxxxxx}" to "id-xxxxxxx".
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r-- | tools/qdoc3/node.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp index ce53b86..f4736f3 100644 --- a/tools/qdoc3/node.cpp +++ b/tools/qdoc3/node.cpp @@ -46,6 +46,7 @@ #include "node.h" #include "tree.h" #include "codemarker.h" +#include <QUuid> #include <qdebug.h> QT_BEGIN_NAMESPACE @@ -103,7 +104,6 @@ Node::Node(Type type, InnerNode *parent, const QString& name) { if (par) par->addChild(this); - //uuid = QUuid::createUuid(); } /*! @@ -270,14 +270,16 @@ QString Node::fileBase() const } /*! - Returns this node's Universally Unique IDentifier. - If its UUID has not yet been created, it is created - first. + Returns this node's Universally Unique IDentifier as a + QString. Creates the UUID first, if it has not been created. */ -QUuid Node::guid() const +QString Node::guid() const { - if (uuid.isNull()) - uuid = QUuid::createUuid(); + if (uuid.isEmpty()) { + QUuid quuid = QUuid::createUuid(); + QString t = quuid.toString(); + uuid = "id-" + t.mid(1,t.length()-2); + } return uuid; } |