projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a stub of the code that will fill all the fields of the board selection Wizard...
[bertos.git]
/
wizard
/
qvariant_converter.py
diff --git
a/wizard/qvariant_converter.py
b/wizard/qvariant_converter.py
index 81181965121f979cc457a930f06e344c94e6d2ea..8ff5be3c617b6d1015c52371d971c2bfe5f42ab5 100644
(file)
--- a/
wizard/qvariant_converter.py
+++ b/
wizard/qvariant_converter.py
@@
-35,9
+35,14
@@
from PyQt4.QtCore import PYQT_VERSION_STR
from PyQt4.QtCore import PYQT_VERSION_STR
+# 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 *
if PYQT_VERSION_STR <= "4.4.3":
from qvariant_converter_old import *
-elif PYQT_VERSION_STR < "4.5.0":
- from qvariant_converter_new 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:
else:
- from qvariant_converter_
newer
import *
+ from qvariant_converter_
4_6
import *