223 self.setDynamicSortFilter(True) |
223 self.setDynamicSortFilter(True) |
224 self.setSourceModel(sourceModel) |
224 self.setSourceModel(sourceModel) |
225 |
225 |
226 def lessThan(self, left, right): |
226 def lessThan(self, left, right): |
227 """ |
227 """ |
228 Protected method used to sort the displayed items. |
228 Public method used to sort the displayed items. |
229 |
229 |
230 @param left index of left item (QModelIndex) |
230 @param left index of left item (QModelIndex) |
231 @param right index of right item (QModelIndex) |
231 @param right index of right item (QModelIndex) |
232 @return true, if left is less than right (boolean) |
232 @return true, if left is less than right (boolean) |
233 """ |
233 """ |