Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesFoldDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3008
7848489bcb92
child 3145
a9de05d4a22f
diff -r 9986ec0e559a -r 10516539f238 Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesFoldDialog.py
--- a/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesFoldDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesFoldDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -54,7 +54,8 @@
         """
         Private slot to add a patch to the list of selected patches.
         """
-        row = self.sourcePatches.indexOfTopLevelItem(self.sourcePatches.currentItem())
+        row = self.sourcePatches.indexOfTopLevelItem(
+            self.sourcePatches.currentItem())
         itm = self.sourcePatches.takeTopLevelItem(row)
         
         curItm = self.selectedPatches.currentItem()
@@ -71,7 +72,8 @@
         """
         Private slot to remove a patch from the list of selected patches.
         """
-        row = self.selectedPatches.indexOfTopLevelItem(self.selectedPatches.currentItem())
+        row = self.selectedPatches.indexOfTopLevelItem(
+            self.selectedPatches.currentItem())
         itm = self.selectedPatches.takeTopLevelItem(row)
         self.sourcePatches.addTopLevelItem(itm)
         self.sourcePatches.sortItems(0, Qt.AscendingOrder)
@@ -83,7 +85,8 @@
         """
         Private slot to move a patch up in the list.
         """
-        row = self.selectedPatches.indexOfTopLevelItem(self.selectedPatches.currentItem())
+        row = self.selectedPatches.indexOfTopLevelItem(
+            self.selectedPatches.currentItem())
         if row > 0:
             targetRow = row - 1
             itm = self.selectedPatches.takeTopLevelItem(row)
@@ -95,7 +98,8 @@
         """
         Private slot to move a patch down in the list.
         """
-        row = self.selectedPatches.indexOfTopLevelItem(self.selectedPatches.currentItem())
+        row = self.selectedPatches.indexOfTopLevelItem(
+            self.selectedPatches.currentItem())
         if row < self.selectedPatches.topLevelItemCount() - 1:
             targetRow = row + 1
             itm = self.selectedPatches.takeTopLevelItem(row)
@@ -108,23 +112,27 @@
         Private slot to react on changes of the current item of source patches.
         
         @param current reference to the new current item (QTreeWidgetItem)
-        @param previous reference to the previous current item (QTreeWidgetItem)
+        @param previous reference to the previous current item
+            (QTreeWidgetItem)
         """
         self.addButton.setEnabled(current is not None)
     
     @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem)
     def on_selectedPatches_currentItemChanged(self, current, previous):
         """
-        Private slot to react on changes of the current item of selected patches.
+        Private slot to react on changes of the current item of selected
+        patches.
         
         @param current reference to the new current item (QTreeWidgetItem)
-        @param previous reference to the previous current item (QTreeWidgetItem)
+        @param previous reference to the previous current item
+            (QTreeWidgetItem)
         """
         self.removeButton.setEnabled(current is not None)
         
         row = self.selectedPatches.indexOfTopLevelItem(current)
         self.upButton.setEnabled(row > 0)
-        self.downButton.setEnabled(row < self.selectedPatches.topLevelItemCount() - 1)
+        self.downButton.setEnabled(
+            row < self.selectedPatches.topLevelItemCount() - 1)
     
     def getData(self):
         """

eric ide

mercurial