Add path in the tooltip of the toolchainList element
[bertos.git] / wizard / BToolchainPage.py
index 6b39ade822cdc4539a7c15ce4c2a5e1526ade410..b9aa7609312c4bbc067ef7269c69cafb70726990 100644 (file)
@@ -14,10 +14,7 @@ import os
 from BWizardPage import *
 import BToolchainSearch
 import bertos_utils
-if PYQT_VERSION_STR > "4.4.3":
-    import qvariant_converter_new as qvariant_converter
-else:
-    import qvariant_converter_old as qvariant_converter
+import qvariant_converter
 
 class BToolchainPage(BWizardPage):
     
@@ -76,6 +73,7 @@ class BToolchainPage(BWizardPage):
     
     def _validItem(self, index, infos):
         item = self.pageContent.toolchainList.item(index)
+        item.setToolTip(qvariant_converter.getString(self.pageContent.toolchainList.item(index).data(Qt.UserRole)))
         needed = self._projectInfoRetrieve("CPU_INFOS")
         if infos["target"].find(qvariant_converter.getString(needed["TOOLCHAIN"])) != -1:
             item.setIcon(QIcon(":/images/ok.png"))