Helpviewer/CookieJar/CookiesDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3002
6ffc581f00f1
child 3145
a9de05d4a22f
--- a/Helpviewer/CookieJar/CookiesDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Helpviewer/CookieJar/CookiesDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -42,7 +42,8 @@
         model = CookieModel(cookieJar, self)
         self.__proxyModel = QSortFilterProxyModel(self)
         self.__proxyModel.setSourceModel(model)
-        self.searchEdit.textChanged.connect(self.__proxyModel.setFilterFixedString)
+        self.searchEdit.textChanged.connect(
+            self.__proxyModel.setFilterFixedString)
         self.cookiesTable.setModel(self.__proxyModel)
         self.cookiesTable.doubleClicked.connect(self.__showCookieDetails)
         self.cookiesTable.selectionModel().selectionChanged.connect(
@@ -54,13 +55,15 @@
         self.cookiesTable.verticalHeader().setDefaultSectionSize(height)
         self.cookiesTable.verticalHeader().setMinimumSectionSize(-1)
         for section in range(model.columnCount()):
-            header = self.cookiesTable.horizontalHeader().sectionSizeHint(section)
+            header = self.cookiesTable.horizontalHeader()\
+                .sectionSizeHint(section)
             if section == 0:
                 header = fm.width("averagebiglonghost.averagedomain.info")
             elif section == 1:
                 header = fm.width("_session_id")
             elif section == 4:
-                header = fm.width(QDateTime.currentDateTime().toString(Qt.LocalDate))
+                header = fm.width(
+                    QDateTime.currentDateTime().toString(Qt.LocalDate))
             buffer = fm.width("mm")
             header += buffer
             self.cookiesTable.horizontalHeader().resizeSection(section, header)
@@ -93,12 +96,14 @@
         secure = model.data(model.index(row, 3))
         expires = model.data(model.index(row, 4)).toString("yyyy-MM-dd hh:mm")
         value = bytes(
-            QByteArray.fromPercentEncoding(model.data(model.index(row, 5)))).decode()
+            QByteArray.fromPercentEncoding(
+                model.data(model.index(row, 5)))).decode()
         
         if self.__detailsDialog is None:
             from .CookieDetailsDialog import CookieDetailsDialog
             self.__detailsDialog = CookieDetailsDialog(self)
-        self.__detailsDialog.setData(domain, name, path, secure, expires, value)
+        self.__detailsDialog.setData(domain, name, path, secure, expires,
+                                     value)
         self.__detailsDialog.show()
     
     @pyqtSlot()

eric ide

mercurial