qdoc: Adjust regexp that generates tags from module names

Use a slightly better regular expression for splitting module names
into tags used for example manifest files.

This will correctly split words with consecutive capital letters
(e.g. QtDBus)

Change-Id: I1320e08a1fbd44f718b82a1fcfea19eabca035fc
Reviewed-by: Martin Smith <martin.smith@digia.com>
bb10
Topi Reinio 2013-04-25 12:24:28 +02:00 committed by The Qt Project
parent e7c3b21b7c
commit e80a8fe861
1 changed files with 1 additions and 1 deletions

View File

@ -4184,7 +4184,7 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element)
writer.writeEndElement(); // description
// Add words from module name as tags (QtQuickControls -> qt,quick,controls)
QRegExp re("([A-Z][a-z0-9]+)");
QRegExp re("([A-Z]+[a-z0-9]*)");
int pos = 0;
while ((pos = re.indexIn(project, pos)) != -1) {
tags << re.cap(1).toLower();