void VariantVisitor::visit(Trace::Enum *e) { VariantVisitor vis; e->sig->second->visit(vis); QVariant val = vis.variant(); m_variant = QVariant::fromValue( ApiEnum(QString::fromStdString(e->sig->first), val)); }
void VariantVisitor::visit(trace::Enum *e) { ApiTraceEnumSignature *sig = 0; if (m_loader) { sig = m_loader->enumSignature(e->sig->id); } if (!sig) { sig = new ApiTraceEnumSignature(e->sig); if (m_loader) { m_loader->addEnumSignature(e->sig->id, sig); } } m_variant = QVariant::fromValue(ApiEnum(sig, e->value)); }
void VariantVisitor::visit(trace::Enum *e) { m_variant = QVariant::fromValue(ApiEnum(e->sig, e->value)); }