From 56ea4adcc94823c8756d249106fa7e54d60c8219 Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 7 Sep 2009 18:56:28 +0000 Subject: [PATCH] Try to resolve problems with QVariant API changing git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2891 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/qvariant_converter_newer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wizard/qvariant_converter_newer.py b/wizard/qvariant_converter_newer.py index 5335032f..30317e8f 100644 --- a/wizard/qvariant_converter_newer.py +++ b/wizard/qvariant_converter_newer.py @@ -28,7 +28,7 @@ # # Copyright 2009 Develer S.r.l. (http://www.develer.com/) # -# $Id:$ +# $Id$ # # Author: Lorenzo Berni # @@ -56,8 +56,8 @@ def convertStringList(string_list): 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 @@ -92,7 +92,7 @@ def convertBoolDict(dict_str_bool): 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 -- 2.25.1