![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Intermediate representation of a single enum value. More...
#include <member.h>
Public Member Functions | |
| QJsonObject | toJson () const |
| \variable IR::EnumValueIR::name Enumerator name. | |
Public Attributes | |
| QString | name |
| QString | value |
| QString | since |
Intermediate representation of a single enum value.
EnumValueIR captures the name, explicit initializer, and version information for one enumerator. Templates use this to render enum value tables in class documentation.
JSON output omits value and since when their respective strings are empty.
|
nodiscard |
\variable IR::EnumValueIR::name Enumerator name.
\variable IR::EnumValueIR::value Explicit initializer expression, empty if the compiler assigns the value.
\variable IR::EnumValueIR::since Qt version that introduced this enumerator, empty if unversioned.
Converts the enum value to a QJsonObject for template rendering.
Always emits name. The value and since keys are omitted when their respective strings are empty.
Definition at line 93 of file member.cpp.
| QString IR::EnumValueIR::name |
Definition at line 28 of file member.h.
Referenced by testing.tools.encode_pdf_filter._PdfStream::RegisterByName().