UI/BrowserSortFilterProxyModel.py

changeset 3034
7ce719013078
parent 2302
f29e9405c851
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3033:58fe260e7469 3034:7ce719013078
47 47
48 @param left index of left item (QModelIndex) 48 @param left index of left item (QModelIndex)
49 @param right index of right item (QModelIndex) 49 @param right index of right item (QModelIndex)
50 @return true, if left is less than right (boolean) 50 @return true, if left is less than right (boolean)
51 """ 51 """
52 l = left.model() and left.model().item(left) or None 52 le = left.model() and left.model().item(left) or None
53 r = right.model() and right.model().item(right) or None 53 ri = right.model() and right.model().item(right) or None
54 54
55 if l and r: 55 if le and ri:
56 return l.lessThan(r, self.__sortColumn, self.__sortOrder) 56 return le.lessThan(ri, self.__sortColumn, self.__sortOrder)
57 57
58 return False 58 return False
59 59
60 def item(self, index): 60 def item(self, index):
61 """ 61 """

eric ide

mercurial