14 ) |
14 ) |
15 from PyQt6.QtGui import QPalette, QDesktopServices |
15 from PyQt6.QtGui import QPalette, QDesktopServices |
16 from PyQt6.QtWidgets import QWidget, QStyle, QDialog |
16 from PyQt6.QtWidgets import QWidget, QStyle, QDialog |
17 from PyQt6.QtWebEngineWidgets import QWebEngineDownloadItem |
17 from PyQt6.QtWebEngineWidgets import QWebEngineDownloadItem |
18 |
18 |
19 from E5Gui import E5FileDialog |
19 from E5Gui import EricFileDialog |
20 |
20 |
21 from .Ui_DownloadItem import Ui_DownloadItem |
21 from .Ui_DownloadItem import Ui_DownloadItem |
22 |
22 |
23 from .DownloadUtilities import timeString, dataString, speedString |
23 from .DownloadUtilities import timeString, dataString, speedString |
24 from WebBrowser.WebBrowserWindow import WebBrowserWindow |
24 from WebBrowser.WebBrowserWindow import WebBrowserWindow |
208 QFileInfo(fileName).completeBaseName() |
208 QFileInfo(fileName).completeBaseName() |
209 ) |
209 ) |
210 |
210 |
211 if ask and not self.__autoOpen: |
211 if ask and not self.__autoOpen: |
212 self.__gettingFileName = True |
212 self.__gettingFileName = True |
213 fileName = E5FileDialog.getSaveFileName( |
213 fileName = EricFileDialog.getSaveFileName( |
214 None, |
214 None, |
215 self.tr("Save File"), |
215 self.tr("Save File"), |
216 defaultFileName, |
216 defaultFileName, |
217 "") |
217 "") |
218 self.__gettingFileName = False |
218 self.__gettingFileName = False |