Helpviewer/Download/DownloadItem.py

changeset 4771
5fb66766e4eb
parent 4631
5c1a96925da4
child 4830
f609a22f43bd
equal deleted inserted replaced
4765:475c5cbfc8f0 4771:5fb66766e4eb
211 return 211 return
212 212
213 self.__autoOpen = dlg.getAction() == "open" 213 self.__autoOpen = dlg.getAction() == "open"
214 if PYQT_VERSION_STR >= "5.0.0": 214 if PYQT_VERSION_STR >= "5.0.0":
215 from PyQt5.QtCore import QStandardPaths 215 from PyQt5.QtCore import QStandardPaths
216 tempLocation = QStandardPaths.storageLocation( 216 tempLocation = QStandardPaths.standardLocations(
217 QStandardPaths.TempLocation) 217 QStandardPaths.TempLocation)[0]
218 else: 218 else:
219 from PyQt5.QtGui import QDesktopServices 219 from PyQt5.QtGui import QDesktopServices
220 tempLocation = QDesktopServices.storageLocation( 220 tempLocation = QDesktopServices.storageLocation(
221 QDesktopServices.TempLocation) 221 QDesktopServices.TempLocation)
222 fileName = tempLocation + '/' + \ 222 fileName = tempLocation + '/' + \

eric ide

mercurial