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
parent
e7c3b21b7c
commit
e80a8fe861
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue