aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-14 17:26:49 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-14 17:26:49 +0200
commit449ac3d20ef7aa4d63f258eeb2a160a5f55cfa9c (patch)
tree1eed2ec9c97c99faf44e0afde47ca682b765dd71
parent9efd410b91168d2afe730d3fc53bc8718ca39347 (diff)
downloadqmenumodel-449ac3d20ef7aa4d63f258eeb2a160a5f55cfa9c.tar.gz
qmenumodel-449ac3d20ef7aa4d63f258eeb2a160a5f55cfa9c.tar.bz2
qmenumodel-449ac3d20ef7aa4d63f258eeb2a160a5f55cfa9c.zip
Converter: add support to LongLong and ULongLong
-rw-r--r--libqmenumodel/src/converter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libqmenumodel/src/converter.cpp b/libqmenumodel/src/converter.cpp
index 69e6629..021fc82 100644
--- a/libqmenumodel/src/converter.cpp
+++ b/libqmenumodel/src/converter.cpp
@@ -156,12 +156,18 @@ GVariant* Converter::toGVariant(const QVariant &value)
case QVariant::Int:
result = g_variant_new_int32(value.toInt());
break;
+ case QVariant::LongLong:
+ result = g_variant_new_int64(value.toLongLong());
+ break;
case QVariant::String:
result = g_variant_new_string(value.toString().toUtf8().data());
break;
case QVariant::UInt:
result = g_variant_new_uint32(value.toUInt());
break;
+ case QVariant::ULongLong:
+ result = g_variant_new_uint64(value.toULongLong());
+ break;
case QVariant::Map:
{
GVariantBuilder *b;