Debugger/VariablesFilterDialog.py

changeset 3664
78e522719af3
parent 3656
441956d8fce5
child 3702
dabc69b82c7c
equal deleted inserted replaced
3663:83e22cb3b312 3664:78e522719af3
48 for ts in ConfigVarTypeDispStrings: 48 for ts in ConfigVarTypeDispStrings:
49 lb.addItem(self.tr(ts)) 49 lb.addItem(self.tr(ts))
50 50
51 for filterIndex in lDefaultFilter: 51 for filterIndex in lDefaultFilter:
52 itm = self.localsList.item(filterIndex) 52 itm = self.localsList.item(filterIndex)
53 self.localsList.setItemSelected(itm, True) 53 itm.setSelected(True)
54 for filterIndex in gDefaultFilter: 54 for filterIndex in gDefaultFilter:
55 itm = self.globalsList.item(filterIndex) 55 itm = self.globalsList.item(filterIndex)
56 self.globalsList.setItemSelected(itm, True) 56 itm.setSelected(True)
57 57
58 def getSelection(self): 58 def getSelection(self):
59 """ 59 """
60 Public slot to retrieve the current selections. 60 Public slot to retrieve the current selections.
61 61
81 @param lList local variables filter (list of int) 81 @param lList local variables filter (list of int)
82 @param gList global variables filter (list of int) 82 @param gList global variables filter (list of int)
83 """ 83 """
84 for filterIndex in lList: 84 for filterIndex in lList:
85 itm = self.localsList.item(filterIndex) 85 itm = self.localsList.item(filterIndex)
86 self.localsList.setItemSelected(itm, True) 86 itm.setSelected(True)
87 for filterIndex in gList: 87 for filterIndex in gList:
88 itm = self.globalsList.item(filterIndex) 88 itm = self.globalsList.item(filterIndex)
89 self.globalsList.setItemSelected(itm, True) 89 itm.setSelected(True)
90 90
91 def on_buttonBox_clicked(self, button): 91 def on_buttonBox_clicked(self, button):
92 """ 92 """
93 Private slot called by a button of the button box clicked. 93 Private slot called by a button of the button box clicked.
94 94

eric ide

mercurial