Skip to content

Commit 77c3339

Browse files
committed
remove sort
1 parent 9dd4ac9 commit 77c3339

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Utils/SortFilterModel.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ def __init__(self, *args, **kwargs):
3030
# 自动
3131
self.setDynamicSortFilter(True)
3232

33-
def lessThan(self, source_left, source_right):
34-
# 按照文字长度和字母比较排序
35-
if not source_left.isValid() or not source_right.isValid():
36-
return False
37-
leftData = self.sourceModel().data(source_left)
38-
rightData = self.sourceModel().data(source_right)
39-
# return super(SortFilterModel, self).lessThan(source_left,
40-
# source_right)
41-
return len(leftData) < len(rightData)
33+
# def lessThan(self, source_left, source_right):
34+
# # 按照文字长度和字母比较排序
35+
# if not source_left.isValid() or not source_right.isValid():
36+
# return False
37+
# leftData = self.sourceModel().data(source_left)
38+
# rightData = self.sourceModel().data(source_right)
39+
# # return super(SortFilterModel, self).lessThan(source_left,
40+
# # source_right)
41+
# return len(leftData) < len(rightData)
4242

4343
def filterAcceptsRow(self, sourceRow, sourceParent):
4444
# 过滤

0 commit comments

Comments
 (0)