Helpviewer/Download/DownloadItem.py

branch
6_1_x
changeset 4770
07bb802753a2
parent 4632
ca310db386ed
child 4830
f609a22f43bd
equal deleted inserted replaced
4764:429cc4f5893a 4770:07bb802753a2
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