eric7/WebBrowser/Download/DownloadManager.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
child 8322
b422b4e77d19
equal deleted inserted replaced
8316:0c7a44af84bc 8318:962bce857696
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)

eric ide

mercurial