Helpviewer/CookieJar/CookiesDialog.py

changeset 3002
6ffc581f00f1
parent 2403
e3d7a861547c
child 3057
10516539f238
child 3160
209a07d7e401
diff -r 3674ff5fa8f8 -r 6ffc581f00f1 Helpviewer/CookieJar/CookiesDialog.py
--- a/Helpviewer/CookieJar/CookiesDialog.py	Wed Oct 09 19:47:41 2013 +0200
+++ b/Helpviewer/CookieJar/CookiesDialog.py	Thu Oct 10 18:35:45 2013 +0200
@@ -40,7 +40,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(
@@ -52,13 +53,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)
@@ -91,12 +94,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