5 |
5 |
6 """ |
6 """ |
7 Module implementing the download manager class. |
7 Module implementing the download manager class. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt5.QtCore import ( |
10 from PyQt6.QtCore import ( |
11 pyqtSlot, pyqtSignal, Qt, QModelIndex, QFileInfo, QUrl, QBasicTimer |
11 pyqtSlot, pyqtSignal, Qt, QModelIndex, QFileInfo, QUrl, QBasicTimer |
12 ) |
12 ) |
13 from PyQt5.QtGui import QCursor, QKeySequence |
13 from PyQt6.QtGui import QCursor, QKeySequence, QShortcut |
14 from PyQt5.QtWidgets import ( |
14 from PyQt6.QtWidgets import ( |
15 QDialog, QStyle, QFileIconProvider, QMenu, QApplication, QShortcut |
15 QDialog, QStyle, QFileIconProvider, QMenu, QApplication |
16 ) |
16 ) |
17 |
17 |
18 from E5Gui import E5MessageBox |
18 from E5Gui import E5MessageBox |
19 from E5Gui.E5Application import e5App |
19 from E5Gui.E5Application import e5App |
20 |
20 |
558 |
558 |
559 @return reference to the task bar button |
559 @return reference to the task bar button |
560 @rtype QWinTaskbarButton or None |
560 @rtype QWinTaskbarButton or None |
561 """ |
561 """ |
562 if Globals.isWindowsPlatform(): |
562 if Globals.isWindowsPlatform(): |
563 from PyQt5.QtWinExtras import QWinTaskbarButton |
563 from PyQt6.QtWinExtras import QWinTaskbarButton |
564 if self.__winTaskbarButton is None: |
564 if self.__winTaskbarButton is None: |
565 window = WebBrowserWindow.mainWindow() |
565 window = WebBrowserWindow.mainWindow() |
566 self.__winTaskbarButton = QWinTaskbarButton( |
566 self.__winTaskbarButton = QWinTaskbarButton( |
567 window.windowHandle()) |
567 window.windowHandle()) |
568 self.__winTaskbarButton.progress().setRange(0, 100) |
568 self.__winTaskbarButton.progress().setRange(0, 100) |