diff -r c712d09cc839 -r f6881d10e995 src/eric7/WebBrowser/Download/DownloadManager.py --- a/src/eric7/WebBrowser/Download/DownloadManager.py Fri Dec 22 13:57:47 2023 +0100 +++ b/src/eric7/WebBrowser/Download/DownloadManager.py Fri Dec 22 17:24:07 2023 +0100 @@ -53,7 +53,8 @@ """ Constructor - @param parent reference to the parent widget (QWidget) + @param parent reference to the parent widget + @type QWidget """ super().__init__(parent) self.setupUi(self) @@ -98,7 +99,8 @@ """ Private slot to handle the context menu request for the bookmarks tree. - @param pos position the context menu was requested (QPoint) + @param pos position the context menu was requested + @type QPoint """ menu = QMenu() @@ -152,7 +154,8 @@ """ Public method to get the number of active downloads. - @return number of active downloads (integer) + @return number of active downloads + @rtype int """ count = 0 @@ -165,7 +168,8 @@ """ Public method to check, if it is ok to quit. - @return flag indicating allowance to quit (boolean) + @return flag indicating allowance to quit + @rtype bool """ if self.activeDownloadsCount() > 0: res = EricMessageBox.yesNo( @@ -379,7 +383,8 @@ """ Public method to get the remove policy. - @return remove policy (integer) + @return remove policy + @rtype int """ return Preferences.getWebBrowser("DownloadManagerRemovePolicy") @@ -390,6 +395,7 @@ @param policy policy to be set (DownloadManager.RemoveExit, DownloadManager.RemoveNever, DownloadManager.RemoveSuccessFullDownload) + @type int """ if policy in ( DownloadManager.RemoveExit, @@ -519,7 +525,8 @@ """ Public method to set the current download directory. - @param directory current download directory (string) + @param directory current download directory + @type str """ self.__downloadDirectory = directory if self.__downloadDirectory != "": @@ -529,7 +536,8 @@ """ Public method to get the current download directory. - @return current download directory (string) + @return current download directory + @rtype str """ return self.__downloadDirectory @@ -546,7 +554,8 @@ """ Public method to get a reference to the downloads. - @return reference to the downloads (list of DownloadItem) + @return reference to the downloads + @rtype list of DownloadItem """ return self.__downloads @@ -655,7 +664,8 @@ """ Private method to get a reference to the current item. - @return reference to the current item (DownloadItem) + @return reference to the current item + @rtype DownloadItem """ index = self.downloadsView.currentIndex() if index and index.isValid():