aboutsummaryrefslogtreecommitdiffstats
path: root/src/webchannel/variantargument_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webchannel/variantargument_p.h')
-rw-r--r--src/webchannel/variantargument_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webchannel/variantargument_p.h b/src/webchannel/variantargument_p.h
index 263a742..afac507 100644
--- a/src/webchannel/variantargument_p.h
+++ b/src/webchannel/variantargument_p.h
@@ -62,6 +62,9 @@ struct VariantArgument
{
operator QGenericArgument() const
{
+ if (type == QMetaType::QVariant) {
+ return Q_ARG(QVariant, value);
+ }
if (!value.isValid()) {
return QGenericArgument();
}
@@ -69,6 +72,7 @@ struct VariantArgument
}
QVariant value;
+ int type;
};
QT_END_NAMESPACE