From: batt Date: Fri, 9 Jan 2009 16:52:53 +0000 (+0000) Subject: Resolve one of the qvariant conversion problem on ubuntu linux platform X-Git-Tag: 2.1.0~529 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=214612327f6fe0111c487f4019599e285a14f446;p=bertos.git Resolve one of the qvariant conversion problem on ubuntu linux platform git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2153 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/qvariant_converter.py b/wizard/qvariant_converter.py index 9e3b3ed8..b23bb47d 100644 --- a/wizard/qvariant_converter.py +++ b/wizard/qvariant_converter.py @@ -23,7 +23,7 @@ def getStringList(qvariant): return string_list def convertStringList(string_list): - return QVariant(string_list) + return QVariant(QStringList(string_list)) def getStringDict(qvariant): dict_str_str = {} @@ -65,4 +65,4 @@ def convertDict(dict_str_variant): result_dict = {} for key, value in dict_str_variant.items(): result_dict[QString(key)] = value - return QVariant(result_dict) \ No newline at end of file + return QVariant(result_dict)