![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/qstring.h>Go to the source code of this file.
Functions | |
| QString | computeAnchorId (const Node *node) |
Computes the raw anchor base for node based on its type.
QML properties receive a {-prop} or {-attached-prop} suffix, signals receive {-signal}, methods receive {-method} with an optional overload number, and so on. The returned string isn't sanitized — each caller applies its own cleanup or finalization (such as Generator::cleanRef() or HrefResolverConfig::cleanRefFn).
Both HrefResolver::anchorForNode() and XmlGenerator::refForNode() delegate to this function for the shared node-type dispatch, ensuring consistent anchor naming across the IR extraction and legacy generation paths.
Definition at line 30 of file anchorid.cpp.