Debugger/BreakPointViewer.py

changeset 1927
a0959cd5f923
parent 1532
df0c2a045c72
child 1928
adde55ed4ce5
equal deleted inserted replaced
1926:474057fbefe0 1927:a0959cd5f923
62 62
63 @param reference to the breakpoint model (BreakPointModel) 63 @param reference to the breakpoint model (BreakPointModel)
64 """ 64 """
65 self.__model = model 65 self.__model = model
66 66
67 self.sortingModel = QSortFilterProxyModel() 67 # TODO: Remove these comments once proven ok in daily use
68 self.sortingModel.setSourceModel(self.__model) 68 ## self.sortingModel = QSortFilterProxyModel()
69 super().setModel(self.sortingModel) 69 ## self.sortingModel.setDynamicSortFilter(True)
70 70 ## self.sortingModel.setSourceModel(self.__model)
71 header = self.header() 71 ## super().setModel(self.sortingModel)
72 header.setSortIndicator(0, Qt.AscendingOrder) 72 super().setModel(self.__model)
73 header.setSortIndicatorShown(True) 73
74 header.setClickable(True) 74 ## header = self.header()
75 75 ## header.setSortIndicator(0, Qt.AscendingOrder)
76 self.setSortingEnabled(True) 76 ## header.setSortIndicatorShown(True)
77 77 ## header.setClickable(True)
78 ##
79 ## self.setSortingEnabled(True)
80 ##
78 self.__layoutDisplay() 81 self.__layoutDisplay()
79 82
80 def __layoutDisplay(self): 83 def __layoutDisplay(self):
81 """ 84 """
82 Private slot to perform a layout operation. 85 Private slot to perform a layout operation.
102 """ 105 """
103 Private slot to convert an index to a source index. 106 Private slot to convert an index to a source index.
104 107
105 @param index index to be converted (QModelIndex) 108 @param index index to be converted (QModelIndex)
106 """ 109 """
107 return self.sortingModel.mapToSource(index) 110 ## return self.sortingModel.mapToSource(index)
111 return index
108 112
109 def __fromSourceIndex(self, sindex): 113 def __fromSourceIndex(self, sindex):
110 """ 114 """
111 Private slot to convert a source index to an index. 115 Private slot to convert a source index to an index.
112 116
113 @param sindex source index to be converted (QModelIndex) 117 @param sindex source index to be converted (QModelIndex)
114 """ 118 """
115 return self.sortingModel.mapFromSource(sindex) 119 ## return self.sortingModel.mapFromSource(sindex)
120 return sindex
116 121
117 def __setRowSelected(self, index, selected=True): 122 def __setRowSelected(self, index, selected=True):
118 """ 123 """
119 Private slot to select a complete row. 124 Private slot to select a complete row.
120 125

eric ide

mercurial