예제 #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
예제 #2
0
 def mousePressEvent(self, e):
     openLink(self._link)
예제 #3
0
 def mousePressEvent(self, e):
     openLink(self._link)