14 from .CookieExceptionsModel import CookieExceptionsModel |
14 from .CookieExceptionsModel import CookieExceptionsModel |
15 from .CookieModel import CookieModel |
15 from .CookieModel import CookieModel |
16 |
16 |
17 from .Ui_CookiesExceptionsDialog import Ui_CookiesExceptionsDialog |
17 from .Ui_CookiesExceptionsDialog import Ui_CookiesExceptionsDialog |
18 |
18 |
19 import UI.PixmapCache |
|
20 |
|
21 |
19 |
22 class CookiesExceptionsDialog(QDialog, Ui_CookiesExceptionsDialog): |
20 class CookiesExceptionsDialog(QDialog, Ui_CookiesExceptionsDialog): |
23 """ |
21 """ |
24 Class implementing a dialog for the configuration of cookie exceptions. |
22 Class implementing a dialog for the configuration of cookie exceptions. |
25 """ |
23 """ |
30 @param cookieJar reference to the cookie jar (CookieJar) |
28 @param cookieJar reference to the cookie jar (CookieJar) |
31 @param parent reference to the parent widget (QWidget) |
29 @param parent reference to the parent widget (QWidget) |
32 """ |
30 """ |
33 super().__init__(parent) |
31 super().__init__(parent) |
34 self.setupUi(self) |
32 self.setupUi(self) |
35 |
|
36 self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) |
|
37 |
33 |
38 self.__cookieJar = cookieJar |
34 self.__cookieJar = cookieJar |
39 |
35 |
40 self.removeButton.clicked[()].connect(self.exceptionsTable.removeSelected) |
36 self.removeButton.clicked[()].connect(self.exceptionsTable.removeSelected) |
41 self.removeAllButton.clicked[()].connect(self.exceptionsTable.removeAll) |
37 self.removeAllButton.clicked[()].connect(self.exceptionsTable.removeAll) |