-def QVarMapAccess(qv, key):
- # helper function. qv is a dict wrapped into a QVariant
- print 10*'='
- print "DICT:", qv.toMap()
- if len(qv.toMap().keys()) == 0:
- print "EMPTY!"
- import traceback
- traceback.print_stack()
- return None
- else:
- return qv.toMap()[QString(key)].toString()
+class nodeData(QVariant):
+ def __init__(self, *args, **kws):
+ QVariant.__init__(self, *args, **kws)
+ self.type = None
+
+ def setType(self, typ):
+ self.type = typ