Exemple #1
0
 def url(self):
     """
     Return the url path.
     
     :rtype: str 
     """
     return QtCore.QUrl(self.path())
Exemple #2
0
    def url(self):
        """
        Return the url object for the given item.

        :rtype: QtCore.QUrl or None
        """
        if not self._url:
            self._url = QtCore.QUrl(self.text(0))
        return self._url
Exemple #3
0
 def url(self):
     """Used by the mime data when dragging/dropping the item."""
     return QtCore.QUrl("file:///" + self.path())