14 from .CookieDetailsDialog import CookieDetailsDialog |
14 from .CookieDetailsDialog import CookieDetailsDialog |
15 from .CookiesExceptionsDialog import CookiesExceptionsDialog |
15 from .CookiesExceptionsDialog import CookiesExceptionsDialog |
16 |
16 |
17 from .Ui_CookiesDialog import Ui_CookiesDialog |
17 from .Ui_CookiesDialog import Ui_CookiesDialog |
18 |
18 |
19 import UI.PixmapCache |
|
20 |
|
21 |
19 |
22 class CookiesDialog(QDialog, Ui_CookiesDialog): |
20 class CookiesDialog(QDialog, Ui_CookiesDialog): |
23 """ |
21 """ |
24 Class implementing a dialog to show all cookies. |
22 Class implementing a dialog to show all cookies. |
25 """ |
23 """ |
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 |
33 |
36 self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) |
|
37 self.addButton.setEnabled(False) |
34 self.addButton.setEnabled(False) |
38 |
35 |
39 self.__cookieJar = cookieJar |
36 self.__cookieJar = cookieJar |
40 |
37 |
41 self.removeButton.clicked[()].connect(self.cookiesTable.removeSelected) |
38 self.removeButton.clicked[()].connect(self.cookiesTable.removeSelected) |