![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Encapsulates information about native (C++) enum values. More...
#include <nativeenum.h>
Public Member Functions | |
bool | resolve (const QString &path, const QString ®isteredQmlName) |
Locates the node specified by path and sets it as the C++ enumeration associated with this property. | |
void | setPrefix (const QString &prefix) |
const EnumNode * | enumNode () const |
const QString & | prefix () const |
Encapsulates information about native (C++) enum values.
The NativeEnum resolves a qualified path to a C++ enum into a EnumNode pointer. This information is used for replicating the enumerator documentation in QML API reference.
Definition at line 13 of file nativeenum.h.
|
inlinenodiscard |
Definition at line 19 of file nativeenum.h.
Referenced by Generator::generateEnumValuesForQmlReference().
|
inlinenodiscard |
Definition at line 20 of file nativeenum.h.
Locates the node specified by path and sets it as the C++ enumeration associated with this property.
registeredQmlName is a prefix to use in the generated enum value documentation; each enumerator is prefixed with {
<registeredQmlName>.}
Returns true
on success.
Definition at line 43 of file nativeenum.cpp.
Definition at line 17 of file nativeenum.h.