#
# Copyright 2009 Develer S.r.l. (http://www.develer.com/)
#
-# $Id:$
+# $Id$
#
# Author: Lorenzo Berni <duplo@develer.com>
#
def getStringDict(qvariant):
dict_str_str = {}
try:
- for key, value in qvariant.toPyObject().items():
- dict_str_str[unicode(key)] = unicode(value)
+ for key, value in qvariant.toMap().items():
+ dict_str_str[unicode(key)] = unicode(value.toString())
except:
pass
return dict_str_str
def getDict(qvariant):
dict_str_variant = {}
try:
- for key, value in qvariant.toPyObject().items():
+ for key, value in qvariant.toMap().items():
dict_str_variant[unicode(key)] = value
except:
pass