aboutsummaryrefslogtreecommitdiffstats
path: root/qface/helper/qtqml.py
diff options
context:
space:
mode:
Diffstat (limited to 'qface/helper/qtqml.py')
-rw-r--r--qface/helper/qtqml.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qface/helper/qtqml.py b/qface/helper/qtqml.py
index 819000a..9e9c976 100644
--- a/qface/helper/qtqml.py
+++ b/qface/helper/qtqml.py
@@ -19,10 +19,14 @@ class Filters(object):
if t.is_primitive:
if t.name == 'int':
return '0'
+ elif t.name == 'real':
+ return "0.0"
elif t.name == 'bool':
return 'false'
elif t.name == 'string':
return "''"
+ elif t.name == 'var':
+ return "undefined"
elif t.is_enum:
value = next(iter(t.reference.members))
return '{0}Module.{1}'.format(module, value)