eric7/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesFoldDialog.py

branch
eric7
changeset 8629
1b58dc890b87
parent 8318
962bce857696
child 8881
54e42bc2437a
equal deleted inserted replaced
8628:dcdf0074ad39 8629:1b58dc890b87
7 Module implementing a dialog to enter data to fold patches. 7 Module implementing a dialog to enter data to fold patches.
8 """ 8 """
9 9
10 from PyQt6.QtCore import pyqtSlot, Qt 10 from PyQt6.QtCore import pyqtSlot, Qt
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem 11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem
12
13 from EricWidgets.EricApplication import ericApp
12 14
13 from .Ui_HgQueuesFoldDialog import Ui_HgQueuesFoldDialog 15 from .Ui_HgQueuesFoldDialog import Ui_HgQueuesFoldDialog
14 16
15 import UI.PixmapCache 17 import UI.PixmapCache
16 18
31 33
32 self.addButton.setIcon(UI.PixmapCache.getIcon("plus")) 34 self.addButton.setIcon(UI.PixmapCache.getIcon("plus"))
33 self.removeButton.setIcon(UI.PixmapCache.getIcon("minus")) 35 self.removeButton.setIcon(UI.PixmapCache.getIcon("minus"))
34 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow")) 36 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow"))
35 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow")) 37 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow"))
38
39 project = ericApp().getObject("Project")
40 pwl, pel = project.getProjectDictionaries()
41 language = project.getProjectSpellLanguage()
42 self.messageEdit.setLanguageWithPWL(
43 language, pwl or None, pel or None)
36 44
37 for patch in patchesList: 45 for patch in patchesList:
38 name, summary = patch.split("@@") 46 name, summary = patch.split("@@")
39 QTreeWidgetItem(self.sourcePatches, [name, summary]) 47 QTreeWidgetItem(self.sourcePatches, [name, summary])
40 48

eric ide

mercurial