DoxygenGenerator: Ignore Q_INVOKABLE in front of function declarations

Otherwise the doxygen generation will not work.

Fixes: QTCREATORBUG-12411
Change-Id: I3e887dfeb5caba727da6e56a056c092c5a2e23f9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Leander Schulten
2019-08-23 22:42:30 +02:00
parent 3844f59806
commit 75a065d3d1

View File

@@ -108,6 +108,10 @@ QString DoxygenGenerator::generate(QTextCursor cursor,
return QString();
QString declCandidate = cursor.selectedText();
if (declCandidate.startsWith(QLatin1String("Q_INVOKABLE")))
declCandidate = declCandidate.mid(11);
declCandidate.replace(QChar::ParagraphSeparator, QLatin1Char('\n'));
// Let's append a closing brace in the case we got content like 'class MyType {'