forked from qt-creator/qt-creator
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:
@@ -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 {'
|
||||
|
Reference in New Issue
Block a user