UI/BrowserSortFilterProxyModel.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 2525
8b507a9a2d40
parent 3034
7ce719013078
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
49 49
50 @param left index of left item (QModelIndex) 50 @param left index of left item (QModelIndex)
51 @param right index of right item (QModelIndex) 51 @param right index of right item (QModelIndex)
52 @return true, if left is less than right (boolean) 52 @return true, if left is less than right (boolean)
53 """ 53 """
54 l = left.model() and left.model().item(left) or None 54 le = left.model() and left.model().item(left) or None
55 r = right.model() and right.model().item(right) or None 55 ri = right.model() and right.model().item(right) or None
56 56
57 if l and r: 57 if le and ri:
58 return l.lessThan(r, self.__sortColumn, self.__sortOrder) 58 return le.lessThan(ri, self.__sortColumn, self.__sortOrder)
59 59
60 return False 60 return False
61 61
62 def item(self, index): 62 def item(self, index):
63 """ 63 """

eric ide

mercurial