diff options
author | Topi Reinio <topi.reinio@qt.io> | 2020-05-06 13:08:08 +0200 |
---|---|---|
committer | Cherry-pick Bot <cherrypickbot@codereview.qt-project.org> | 2020-05-06 12:50:10 +0000 |
commit | c7755a190ec9484ff97804de75d484e0a1d20cef (patch) | |
tree | a0824472dbba50adf020fb309dc3de02cd6eb046 /tests/auto/qdoc/generatedoutput/expected_output/qml-qdoc-test-doctest.html | |
parent | ceb313d955294db3cd43a30bcd0bb56674868d62 (diff) |
qdoc: Fix parsing of QML signals that take parameters
The signature of a QML signal can resemble that of a method, so we
need to parse it as such.
Fixes: QTBUG-84034
Change-Id: I8506cd3c2cb469053c750ef6d2335cd1b85c3f1a
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 87cffaf9ed4022ac05d3a91d9f26ed1415bdecf6)
Reviewed-by: Cherry-pick Bot
Diffstat (limited to 'tests/auto/qdoc/generatedoutput/expected_output/qml-qdoc-test-doctest.html')
-rw-r--r-- | tests/auto/qdoc/generatedoutput/expected_output/qml-qdoc-test-doctest.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/qdoc/generatedoutput/expected_output/qml-qdoc-test-doctest.html b/tests/auto/qdoc/generatedoutput/expected_output/qml-qdoc-test-doctest.html index e1475d5fb..29ee16b1f 100644 --- a/tests/auto/qdoc/generatedoutput/expected_output/qml-qdoc-test-doctest.html +++ b/tests/auto/qdoc/generatedoutput/expected_output/qml-qdoc-test-doctest.html @@ -11,6 +11,7 @@ <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#properties">Properties</a></li> +<li class="level1"><a href="#signals">Signals</a></li> <li class="level1"><a href="#methods">Methods</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> <li class="level2"><a href="#introduction">Introduction</a></li> @@ -32,6 +33,12 @@ <li class="fn"><b><b><a href="qml-qdoc-test-doctest.html#active-prop">active</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qdoc-test-doctest.html#name-prop">name</a></b></b> : string</li> </ul> +<a name="signals"></a> +<h2 id="signals">Signals</h2> +<ul> +<li class="fn"><b><b><a href="qml-qdoc-test-doctest.html#completed-signal">completed</a></b></b>()</li> +<li class="fn"><b><b><a href="qml-qdoc-test-doctest.html#foo-signal">foo</a></b></b>(var <i>bar</i>)</li> +</ul> <a name="methods"></a> <h2 id="methods">Methods</h2> <ul> @@ -70,6 +77,28 @@ }</pre> </div></div><!-- @@@name --> <br/> +<h2>Signal Documentation</h2> +<!-- $$$completed[overload1]$$$completed --> +<div class="qmlitem"><div class="qmlproto"> +<div class="table"><table class="qmlname"> +<tr valign="top" class="odd" id="completed-signal"> +<td class="tblQmlFuncNode"><p> +<a name="completed-signal"></a><span class="name">completed</span>()</p></td></tr> +</table></div></div> +<div class="qmldoc"><p><b>Note: </b>The corresponding handler is <code>onCompleted</code>.</p> +</div></div><!-- @@@completed --> +<br/> +<!-- $$$foo[overload1]$$$foovar --> +<div class="qmlitem"><div class="qmlproto"> +<div class="table"><table class="qmlname"> +<tr valign="top" class="odd" id="foo-signal"> +<td class="tblQmlFuncNode"><p> +<a name="foo-signal"></a><span class="name">foo</span>(<span class="type">var</span> <i>bar</i>)</p></td></tr> +</table></div></div> +<div class="qmldoc"><p>Signal with parameter <i>bar</i>.</p> +<p><b>Note: </b>The corresponding handler is <code>onFoo</code>.</p> +</div></div><!-- @@@foo --> +<br/> <h2>Method Documentation</h2> <!-- $$$fail[overload1]$$$fail --> <div class="qmlitem"><div class="qmlproto"> |