23 Class implementing the AdBlock configuration dialog. |
23 Class implementing the AdBlock configuration dialog. |
24 """ |
24 """ |
25 def __init__(self, parent=None): |
25 def __init__(self, parent=None): |
26 """ |
26 """ |
27 Constructor |
27 Constructor |
|
28 |
|
29 @param parent reference to the parent object (QWidget) |
28 """ |
30 """ |
29 super().__init__(parent) |
31 super().__init__(parent) |
30 self.setupUi(self) |
32 self.setupUi(self) |
31 |
33 |
32 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlus48.png")) |
34 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("adBlockPlus48.png")) |
225 self.subscriptionsTabWidget.indexOf(tree)) |
227 self.subscriptionsTabWidget.indexOf(tree)) |
226 self.__manager.removeSubscription(removeSubscription) |
228 self.__manager.removeSubscription(removeSubscription) |
227 |
229 |
228 def __switchSubscriptionEnabled(self): |
230 def __switchSubscriptionEnabled(self): |
229 """ |
231 """ |
230 Private slot to switch the enabled state of the selected subscription |
232 Private slot to switch the enabled state of the selected subscription. |
231 """ |
233 """ |
232 newState = not self.__currentSubscription.isEnabled() |
234 newState = not self.__currentSubscription.isEnabled() |
233 self.__setSubscriptionEnabled(self.__currentSubscription, newState) |
235 self.__setSubscriptionEnabled(self.__currentSubscription, newState) |
234 |
236 |
235 def __setSubscriptionEnabled(self, subscription, enable): |
237 def __setSubscriptionEnabled(self, subscription, enable): |