diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/parser/enumvalue.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/parser/enumvalue.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/parser/enumvalue.cpp b/sources/shiboken6/ApiExtractor/parser/enumvalue.cpp index adc37b9c6..27e3b2e61 100644 --- a/sources/shiboken6/ApiExtractor/parser/enumvalue.cpp +++ b/sources/shiboken6/ApiExtractor/parser/enumvalue.cpp @@ -41,8 +41,16 @@ bool EnumValue::equals(const EnumValue &rhs) const return m_type == Signed ? m_value == rhs.m_value : m_unsignedValue == rhs.m_unsignedValue; } +void EnumValue::formatDebugHex(QDebug &d) const +{ + d << "0x" << Qt::hex; + formatDebug(d); + d << Qt::dec; +} + void EnumValue::formatDebug(QDebug &d) const { + if (m_type == EnumValue::Signed) d << m_value; else |
