QDoc: Resolve QML names before other types of link target
This enables the use of QML syntax for names as well as C++ syntax
in link commands, but retains the use of "::" as a shorthand for
concatenating a link label to the rest of a link target, such as
\l{Module.Type::}{property} for a link to Module.Type.property
with only "property" as the visible label.
If a link atom contains a QML-like name, perform a search for a
suitable target in a number of stages, beginning with QML module
names, then types, and finally properties and methods.
If no target is found the search falls back to the existing code.
Task-number: QTBUG-137279
Change-Id: I34489967668ae4e0b5567eb7b03f1046fa6cdcaa
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | 8c7902002fda7f5242bcffe9853a64171f0d1763 |
| parent | 27b84e38955b2237bcc5711b5bae50924e86a250 |
| author | David Boddie <david.boddie@qt.io> |
| committer | David Boddie <david.boddie@qt.io> |
| commit time | Thu, 13 Aug 2026 14:56:30 +0000 |
- M src/qdoc/qdoc/doc/qdoc-manual-contextcmds.qdoc
- M src/qdoc/qdoc/doc/qdoc-manual-markupcmds.qdoc
- M src/qdoc/qdoc/doc/qdoc-manual-topiccmds.qdoc
- M src/qdoc/qdoc/src/qdoc/docparser.cpp
- M src/qdoc/qdoc/src/qdoc/qdocdatabase.cpp
- M src/qdoc/qdoc/src/qdoc/qdocdatabase.h
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qml_properties/expected/qmlproperties.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qml_properties/expected/testmodule-qmlmodule.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qml_properties/src/types.qdoc