MCPcopy Create free account
hub / github.com/KDAB/GammaRay / object

Method object

core/objectinstance.cpp:113–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void *ObjectInstance::object() const
114{
115 Q_ASSERT(m_type == QtObject || m_type == QtGadgetPointer || m_type == QtGadgetValue || m_type == Object || m_type == Value);
116 switch (m_type) {
117 case QtObject:
118 return m_qtObj;
119 case QtGadgetPointer:
120 case QtGadgetValue:
121 return m_obj ? m_obj : const_cast<void *>(m_variant.constData());
122 default:
123 return m_obj;
124 }
125 Q_ASSERT(false);
126 return nullptr;
127}
128
129const QVariant &ObjectInstance::variant() const
130{

Callers 1

operator==Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected