+ dirList = [unicode(element.toString()) for element in self._settingsRetrieve("search_dir_list").toList()]
+ if(self._settingsRetrieve("path_search").toBool()):
+ dirList += [element for element in bertos_utils.getSystemPath()]
+ toolchainList = bertos_utils.findToolchains(dirList)
+ storedToolchainList = self._settingsRetrieve("toolchains").toList()
+ storedToolchainList = set([unicode(toolchain.toString()) for toolchain in storedToolchainList])
+ toolchainList =set(toolchainList) - set(storedToolchainList)
+ for element in toolchainList:
+ item = QListWidgetItem(element)
+ item.setData(Qt.UserRole, QVariant(element))
+ self.pageContent.toolchainList.addItem(item)
+ self._settingsStore("toolchains", list(toolchainList.union(storedToolchainList)))