Project/FiletypeAssociationDialog.py

changeset 564
b3d966393ba9
parent 97
c4086afea02b
child 791
9ec2ac20e54e
--- a/Project/FiletypeAssociationDialog.py	Sat Sep 04 19:51:19 2010 +0200
+++ b/Project/FiletypeAssociationDialog.py	Sat Sep 04 19:51:48 2010 +0200
@@ -99,10 +99,10 @@
         pattern = self.filePatternEdit.text()
         filetype = self.filetypeCombo.currentText()
         if pattern:
-            items = self.filetypeAssociationList.findItems(\
+            items = self.filetypeAssociationList.findItems(
                 pattern, Qt.MatchFlags(Qt.MatchExactly), 0)
             for itm in items:
-                itm = self.filetypeAssociationList.takeTopLevelItem(\
+                itm = self.filetypeAssociationList.takeTopLevelItem(
                     self.filetypeAssociationList.indexOfTopLevelItem(itm))
                 del itm
             itm = self.__createItem(pattern, filetype)
@@ -118,7 +118,7 @@
         Private slot to delete the currently selected association of the listbox.
         """
         for itm in self.filetypeAssociationList.selectedItems():
-            itm = self.filetypeAssociationList.takeTopLevelItem(\
+            itm = self.filetypeAssociationList.takeTopLevelItem(
                 self.filetypeAssociationList.indexOfTopLevelItem(itm))
             del itm
             
@@ -140,7 +140,7 @@
             if len(self.filetypeAssociationList.selectedItems()) == 0:
                 self.deleteAssociationButton.setEnabled(False)
             else:
-                self.deleteAssociationButton.setEnabled(\
+                self.deleteAssociationButton.setEnabled(
                     self.filetypeAssociationList.selectedItems()[0].text(0) == txt)
 
     def transferData(self):
@@ -152,4 +152,4 @@
             itm = self.filetypeAssociationList.topLevelItem(index)
             pattern = itm.text(0)
             index = self.filetypeStrings.index(itm.text(1))
-            self.project.pdata["FILETYPES"][pattern] = self.filetypes[index]
+            self.project.pdata["FILETYPES"][pattern] = self.filetypes[index]
\ No newline at end of file

eric ide

mercurial