Helpviewer/History/HistoryDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3002
6ffc581f00f1
child 3145
a9de05d4a22f
--- a/Helpviewer/History/HistoryDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Helpviewer/History/HistoryDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -42,7 +42,8 @@
         self.__historyManager = manager
         if self.__historyManager is None:
             import Helpviewer.HelpWindow
-            self.__historyManager = Helpviewer.HelpWindow.HelpWindow.historyManager()
+            self.__historyManager = \
+                Helpviewer.HelpWindow.HelpWindow.historyManager()
         
         self.__model = self.__historyManager.historyTreeModel()
         self.__proxyModel = E5TreeSortFilterProxyModel(self)
@@ -61,7 +62,8 @@
         self.historyTree.customContextMenuRequested.connect(
             self.__customContextMenuRequested)
         
-        self.searchEdit.textChanged.connect(self.__proxyModel.setFilterFixedString)
+        self.searchEdit.textChanged.connect(
+            self.__proxyModel.setFilterFixedString)
         self.removeButton.clicked[()].connect(self.historyTree.removeSelected)
         self.removeAllButton.clicked[()].connect(self.__historyManager.clear)
         
@@ -83,8 +85,10 @@
         idx = self.historyTree.indexAt(pos)
         idx = idx.sibling(idx.row(), 0)
         if idx.isValid() and not self.historyTree.model().hasChildren(idx):
-            menu.addAction(self.trUtf8("&Open"), self.__openHistoryInCurrentTab)
-            menu.addAction(self.trUtf8("Open in New &Tab"), self.__openHistoryInNewTab)
+            menu.addAction(
+                self.trUtf8("&Open"), self.__openHistoryInCurrentTab)
+            menu.addAction(
+                self.trUtf8("Open in New &Tab"), self.__openHistoryInNewTab)
             menu.addSeparator()
             menu.addAction(self.trUtf8("&Copy"), self.__copyHistory)
         menu.addAction(self.trUtf8("&Remove"), self.historyTree.removeSelected)
@@ -96,7 +100,8 @@
         
         @param idx reference to the entry index (QModelIndex)
         """
-        self.__openHistory(QApplication.keyboardModifiers() & Qt.ControlModifier)
+        self.__openHistory(
+            QApplication.keyboardModifiers() & Qt.ControlModifier)
         
     def __openHistoryInCurrentTab(self):
         """
@@ -114,7 +119,8 @@
         """
         Private method to open a history entry.
         
-        @param newTab flag indicating to open the history entry in a new tab (boolean)
+        @param newTab flag indicating to open the history entry in a new tab
+            (boolean)
         """
         idx = self.historyTree.currentIndex()
         if newTab:

eric ide

mercurial