Helpviewer/CookieJar/CookiesDialog.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
16 16
17 from .Ui_CookiesDialog import Ui_CookiesDialog 17 from .Ui_CookiesDialog import Ui_CookiesDialog
18 18
19 import UI.PixmapCache 19 import UI.PixmapCache
20 20
21
21 class CookiesDialog(QDialog, Ui_CookiesDialog): 22 class CookiesDialog(QDialog, Ui_CookiesDialog):
22 """ 23 """
23 Class implementing a dialog to show all cookies. 24 Class implementing a dialog to show all cookies.
24 """ 25 """
25 def __init__(self, cookieJar, parent = None): 26 def __init__(self, cookieJar, parent=None):
26 """ 27 """
27 Constructor 28 Constructor
28 29
29 @param cookieJar reference to the cookie jar (CookieJar) 30 @param cookieJar reference to the cookie jar (CookieJar)
30 @param parent reference to the parent widget (QWidget) 31 @param parent reference to the parent widget (QWidget)
66 buffer = fm.width("mm") 67 buffer = fm.width("mm")
67 header += buffer 68 header += buffer
68 self.cookiesTable.horizontalHeader().resizeSection(section, header) 69 self.cookiesTable.horizontalHeader().resizeSection(section, header)
69 self.cookiesTable.horizontalHeader().setStretchLastSection(True) 70 self.cookiesTable.horizontalHeader().setStretchLastSection(True)
70 self.cookiesTable.model().sort( 71 self.cookiesTable.model().sort(
71 self.cookiesTable.horizontalHeader().sortIndicatorSection(), 72 self.cookiesTable.horizontalHeader().sortIndicatorSection(),
72 Qt.AscendingOrder) 73 Qt.AscendingOrder)
73 74
74 self.__detailsDialog = None 75 self.__detailsDialog = None
75 76
76 def __showCookieDetails(self, index): 77 def __showCookieDetails(self, index):

eric ide

mercurial