4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing the cookie model. |
7 Module implementing the cookie 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(CookieModel, self).__init__(parent) |
26 |
28 |
27 self.__headers = [ |
29 self.__headers = [ |
28 self.trUtf8("Website"), |
30 self.trUtf8("Website"), |
29 self.trUtf8("Name"), |
31 self.trUtf8("Name"), |
30 self.trUtf8("Path"), |
32 self.trUtf8("Path"), |