QDoc: Fix type string handling and \since support for QML enumerations
Node::nodeTypeString() and Generator::typeString() were both missing
a case for NodeType::QmlEnum. This caused QML enum nodes to return
incorrect type strings (empty string and "documentation", respectively)
instead of "enumeration".
Extend the qmlenumvaluesfromcpp test to verify that the \since command
works correctly for QML enumerations, and update expected output files
accordingly.
Fixes: QTBUG-146227
Pick-to: 6.11
Change-Id: I165be815281a0c5220a1f50ad3c2860553465c5b
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
| commit | 06229f16dd46669f1478d25e24aa60f182e2817d |
| parent | 8e4b592e93351d941d8a6cc577ef0ffb6d3b34e1 |
| author | Topi Reinio <topi.reinio@qt.io> |
| committer | Topi Reinio <topi.reinio@qt.io> |
| commit time | Tue, 5 May 2026 07:42:50 +0000 |
- M src/qdoc/qdoc/src/qdoc/generator.cpp
- M src/qdoc/qdoc/src/qdoc/node.cpp
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qmlenumvaluesfromcpp/expected/docbook/qml-qmlmodule-type.xml
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qmlenumvaluesfromcpp/expected/html/qml-qmlmodule-type-members.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qmlenumvaluesfromcpp/expected/html/qml-qmlmodule-type.html
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qmlenumvaluesfromcpp/expected/html/qmlenumvaluesfromcpp.index
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/qmlenumvaluesfromcpp/src/qmltype.qdoc