--- a/src/eric7/WebBrowser/Navigation/ReloadStopButton.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/WebBrowser/Navigation/ReloadStopButton.py Wed Jul 13 14:55:47 2022 +0200 @@ -17,33 +17,34 @@ class ReloadStopButton(EricToolButton): """ Class implementing a button alternating between reload and stop. - + @signal reloadClicked() emitted to initiate a reload action @signal stopClicked() emitted to initiate a stop action """ + reloadClicked = pyqtSignal() stopClicked = pyqtSignal() - + def __init__(self, parent=None): """ Constructor - + @param parent reference to the parent widget @type QWidget """ super().__init__(parent) - + self.setObjectName("navigation_reloadstop_button") self.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonIconOnly) self.setFocusPolicy(Qt.FocusPolicy.NoFocus) self.setAutoRaise(True) - + self.__loading = False - + self.clicked.connect(self.__buttonClicked) - + self.__updateButton() - + @pyqtSlot() def __buttonClicked(self): """ @@ -53,7 +54,7 @@ self.stopClicked.emit() else: self.reloadClicked.emit() - + @pyqtSlot() def __updateButton(self): """ @@ -65,11 +66,11 @@ else: self.setIcon(UI.PixmapCache.getIcon("reload")) self.setToolTip(self.tr("Reload the current screen")) - + def setLoading(self, loading): """ Public method to set the loading state. - + @param loading flag indicating the new loading state @type bool """