def on_discoveryList_itemDoubleClicked(self, index): QtGui.QDesktopServices.openUrl(QtCore.QUrl(index.data(ROLE_DEVICE)))
def on_discoveryBrowser_clicked(self): data = self.discoveryList.selectionModel().selectedRows()[0] url = "http://" + data.data(DATA_ADDR) QtGui.QDesktopServices.openUrl(QtCore.QUrl(url))