Helpviewer/Download/DownloadItem.py

changeset 6091
7b989321d74c
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
equal deleted inserted replaced
6090:5cdb7ea57551 6091:7b989321d74c
297 if endName: 297 if endName:
298 name += '.' + endName 298 name += '.' + endName
299 i += 1 299 i += 1
300 return name, origName 300 return name, origName
301 301
302 def __open(self):
303 """
304 Private slot to open the downloaded file.
305 """
306 info = QFileInfo(self.__output)
307 url = QUrl.fromLocalFile(info.absoluteFilePath())
308 QDesktopServices.openUrl(url)
309
310 @pyqtSlot() 302 @pyqtSlot()
311 def on_tryAgainButton_clicked(self): 303 def on_tryAgainButton_clicked(self):
312 """ 304 """
313 Private slot to retry the download. 305 Private slot to retry the download.
314 """ 306 """
640 632
641 self.statusChanged.emit() 633 self.statusChanged.emit()
642 self.downloadFinished.emit() 634 self.downloadFinished.emit()
643 635
644 if self.__autoOpen: 636 if self.__autoOpen:
645 self.__open() 637 self.openFile()
646 638
647 def canceledFileSelect(self): 639 def canceledFileSelect(self):
648 """ 640 """
649 Public method to check, if the user canceled the file selection. 641 Public method to check, if the user canceled the file selection.
650 642

eric ide

mercurial