Esempio n. 1
0
    def openLink(self, url):
        url = url.toString()

        if "mentions://" in url:
            self.userClicked.emit(url[13:], self.__mouseButton)
        elif "hashtag://" in url:
            self.tagClicked.emit(url[11:].replace("#", ""), self.__mouseButton)
        else:
            # common web link
            openLink(url)

        self.__mouseButton = QtCore.Qt.LeftButton
Esempio n. 2
0
 def mousePressEvent(self, e):
     openLink(self._link)
Esempio n. 3
0
 def mousePressEvent(self, e):
     openLink(self._link)