diff options
Diffstat (limited to 'tools/qdoc3')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index f9d0ba2..13e3b4d 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -3519,6 +3519,11 @@ void HtmlGenerator::findAllClasses(const InnerNode *node) */ void HtmlGenerator::findAllSince(const InnerNode *node, QString version) { + const QRegExp versionSeparator("[\\-\\.]"); + const int minorIndex = version.indexOf(versionSeparator); + const int patchIndex = version.indexOf(versionSeparator, minorIndex+1); + version = version.left(patchIndex); + NodeList::const_iterator c = node->childNodes().constBegin(); while (c != node->childNodes().constEnd()) { if (((*c)->access() != Node::Private) && ((*c)->since() == version)) { |