Preferences/ShortcutsDialog.py

changeset 55
b5c84934de9c
parent 53
c3eb7cc1ff8b
child 426
161992758137
child 792
a13346916170
equal deleted inserted replaced
54:31463df17fd5 55:b5c84934de9c
8 """ 8 """
9 9
10 from PyQt4.QtCore import * 10 from PyQt4.QtCore import *
11 from PyQt4.QtGui import * 11 from PyQt4.QtGui import *
12 12
13 from E4Gui.E4Application import e5App 13 from E5Gui.E5Application import e5App
14 14
15 from .Ui_ShortcutsDialog import Ui_ShortcutsDialog 15 from .Ui_ShortcutsDialog import Ui_ShortcutsDialog
16 from .ShortcutDialog import ShortcutDialog 16 from .ShortcutDialog import ShortcutDialog
17 17
18 import UI.PixmapCache 18 import UI.PixmapCache
80 noCheck = False, objectType = None): 80 noCheck = False, objectType = None):
81 """ 81 """
82 Private method to generate a keyboard shortcut item. 82 Private method to generate a keyboard shortcut item.
83 83
84 @param category reference to the category item (QTreeWidgetItem) 84 @param category reference to the category item (QTreeWidgetItem)
85 @param action reference to the keyboard action (E4Action) 85 @param action reference to the keyboard action (E5Action)
86 @keyparam noCheck flag indicating that no uniqueness check should 86 @keyparam noCheck flag indicating that no uniqueness check should
87 be performed (boolean) 87 be performed (boolean)
88 @keyparam objectType type of the object (string). Objects of the same type 88 @keyparam objectType type of the object (string). Objects of the same type
89 are not checked for duplicate shortcuts. 89 are not checked for duplicate shortcuts.
90 """ 90 """
351 def __saveCategoryActions(self, category, actions): 351 def __saveCategoryActions(self, category, actions):
352 """ 352 """
353 Private method to save the actions for a category. 353 Private method to save the actions for a category.
354 354
355 @param category reference to the category item (QTreeWidgetItem) 355 @param category reference to the category item (QTreeWidgetItem)
356 @param actions list of actions for the category (list of E4Action) 356 @param actions list of actions for the category (list of E5Action)
357 """ 357 """
358 for index in range(category.childCount()): 358 for index in range(category.childCount()):
359 itm = category.child(index) 359 itm = category.child(index)
360 txt = itm.data(0, self.objectNameRole) 360 txt = itm.data(0, self.objectNameRole)
361 for act in actions: 361 for act in actions:

eric ide

mercurial