Update preset.
[bertos.git] / wizard / qvariant_converter.py
index 8c4cfd87bf0fa0c405e952e0b0aebab926247363..85fec2c0f21b7fcb0c36c782b0789b1b8f456068 100644 (file)
 #
 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
 #
-# $Id$
 #
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
 from PyQt4.QtCore import PYQT_VERSION_STR
 
-if PYQT_VERSION_STR > "4.4.3":
-    from qvariant_converter_new import *
-else:
+# Choose the right version of the qvariant_converter module. It's awful,
+# I know, but this is the only solution in order to mantain compatibility
+# with older PyQt4 version.
+if PYQT_VERSION_STR <= "4.4.3":
     from qvariant_converter_old import *
+elif "4.4.3" < PYQT_VERSION_STR < "4.5":
+    from qvariant_converter_4_4 import *
+elif "4.5" <= PYQT_VERSION_STR < "4.6":
+    from qvariant_converter_4_5 import *
+else:
+    from qvariant_converter_4_6 import *