eric6/Plugins/VcsPlugins/vcsGit/GitPatchFilesDialog.py

changeset 7533
88261c96484b
parent 7360
9190402e4505
child 7780
41420f82c0ac
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
40 self.patchFilesList.addItems(patchCheckData[0]) 40 self.patchFilesList.addItems(patchCheckData[0])
41 self.stripSpinBox.setValue(patchCheckData[1]) 41 self.stripSpinBox.setValue(patchCheckData[1])
42 self.eofCheckBox.setChecked(patchCheckData[2]) 42 self.eofCheckBox.setChecked(patchCheckData[2])
43 self.lineCountsCheckBox.setChecked(patchCheckData[3]) 43 self.lineCountsCheckBox.setChecked(patchCheckData[3])
44 44
45 self.addButton.setIcon(UI.PixmapCache.getIcon("plus.png")) 45 self.addButton.setIcon(UI.PixmapCache.getIcon("plus"))
46 self.deleteButton.setIcon(UI.PixmapCache.getIcon("minus.png")) 46 self.deleteButton.setIcon(UI.PixmapCache.getIcon("minus"))
47 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow.png")) 47 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow"))
48 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow.png")) 48 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow"))
49 49
50 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 50 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
51 self.__okButton.setEnabled(len(self.__getPatchFilesList()) > 0) 51 self.__okButton.setEnabled(len(self.__getPatchFilesList()) > 0)
52 52
53 self.deleteButton.setEnabled(False) 53 self.deleteButton.setEnabled(False)

eric ide

mercurial