4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing the cookie exceptions model. |
7 Module implementing the cookie exceptions model. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import Qt, QAbstractTableModel, QSize, QModelIndex |
12 from PyQt4.QtCore import Qt, QAbstractTableModel, QSize, QModelIndex |
11 from PyQt4.QtGui import QFont, QFontMetrics |
13 from PyQt4.QtGui import QFont, QFontMetrics |
12 |
14 |
13 |
15 |
20 Constructor |
22 Constructor |
21 |
23 |
22 @param cookieJar reference to the cookie jar (CookieJar) |
24 @param cookieJar reference to the cookie jar (CookieJar) |
23 @param parent reference to the parent object (QObject) |
25 @param parent reference to the parent object (QObject) |
24 """ |
26 """ |
25 super().__init__(parent) |
27 super(CookieExceptionsModel, self).__init__(parent) |
26 |
28 |
27 self.__cookieJar = cookieJar |
29 self.__cookieJar = cookieJar |
28 self.__allowedCookies = self.__cookieJar.allowedCookies() |
30 self.__allowedCookies = self.__cookieJar.allowedCookies() |
29 self.__blockedCookies = self.__cookieJar.blockedCookies() |
31 self.__blockedCookies = self.__cookieJar.blockedCookies() |
30 self.__sessionCookies = self.__cookieJar.allowForSessionCookies() |
32 self.__sessionCookies = self.__cookieJar.allowForSessionCookies() |