diff options
author | Martin Smith <[email protected]> | 2015-01-23 12:40:41 +0100 |
---|---|---|
committer | Martin Smith <[email protected]> | 2015-02-03 11:52:06 +0000 |
commit | 7708c4b85465c08e6ba45a6485288f9459db6bb3 (patch) | |
tree | c02d4aea70d2a3d42f4fa5665c0c4440caf0d42c /src/tools/qdoc/qdocdatabase.cpp | |
parent | c5db8fc74a9d437a4e7c0af077aed7c1f1bd4e26 (diff) |
qdoc: Change uses of module and qmlModule
The uses of moduleName and qmlModuleName are changed to
physicalModuleName and logicalModuleName respectively. A
few other names are also changed in the same way. These
changes are being done both to support documentation of
javascript but also to emphasize that moduleName is
really the name of the physical library module the entity
is part of, and qmlModuleName is really the name of a
collection of logical entities that is versionable and
that may contain entities located in different physical
modules.
Change-Id: If49392aabf5950dc7b97c84f8134e9369e76dd1b
Task-number: QTBUG-43715
Reviewed-by: Martin Smith <[email protected]>
Diffstat (limited to 'src/tools/qdoc/qdocdatabase.cpp')
-rw-r--r-- | src/tools/qdoc/qdocdatabase.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/qdoc/qdocdatabase.cpp b/src/tools/qdoc/qdocdatabase.cpp index bf9baf2282e..30dee21afd8 100644 --- a/src/tools/qdoc/qdocdatabase.cpp +++ b/src/tools/qdoc/qdocdatabase.cpp @@ -160,7 +160,7 @@ void QDocForest::setSearchOrder(QStringList& t) moduleNames_.clear(); /* The primary tree is always first in the search order. */ - QString primaryName = primaryTree()->moduleName(); + QString primaryName = primaryTree()->physicalModuleName(); searchOrder_.append(primaryTree_); moduleNames_.append(primaryName); forest_.remove(primaryName); @@ -359,7 +359,7 @@ void QDocForest::printLinkCounts(const QString& project) QMultiMap<int, QString> m; foreach (Tree* t, searchOrder()) { if (t->linkCount() < 0) - m.insert(t->linkCount(), t->moduleName()); + m.insert(t->linkCount(), t->physicalModuleName()); } QString depends = "depends +="; QString module = project.toLower(); @@ -388,7 +388,7 @@ QString QDocForest::getLinkCounts(QStringList& strings, QVector<int>& counts) QMultiMap<int, QString> m; foreach (Tree* t, searchOrder()) { if (t->linkCount() < 0) - m.insert(t->linkCount(), t->moduleName()); + m.insert(t->linkCount(), t->physicalModuleName()); } QString depends = "depends +="; QString module = Generator::defaultModuleName().toLower(); @@ -1124,7 +1124,7 @@ void QDocDatabase::findAllObsoleteThings(InnerNode* node) else if ((*c)->isQmlType()) { if (name.startsWith(QLatin1String("QML:"))) name = name.mid(4); - name = (*c)->qmlModuleName() + "::" + name; + name = (*c)->logicalModuleName() + "::" + name; obsoleteQmlTypes_.insert(name,*c); } } @@ -1642,7 +1642,7 @@ const Node* QDocDatabase::findNodeForAtom(const Atom* a, const Node* relative, Q target = targetPath.at(0); targetPath.removeFirst(); } - if (relative && relative->tree()->moduleName() != domain->moduleName()) + if (relative && relative->tree()->physicalModuleName() != domain->physicalModuleName()) relative = 0; node = domain->findNodeForTarget(nodePath, target, relative, flags, genus, ref); return node; |