Esempio n. 1
0
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));
}
Esempio n. 2
0
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));
}
Esempio n. 3
0
void VariantVisitor::visit(trace::Enum *e)
{
    m_variant = QVariant::fromValue(ApiEnum(e->sig, e->value));
}