示例#1
0
    def __lt__(self, other):
        sortColumn = self.treeWidget().sortColumn()

        if sortColumn == 1:
            lhs = int(self.text(1))
            rhs = int(other.text(1))
            return lhs < rhs

        return QTreeWidgetItem.__lt__(self, other)
示例#2
0
 def __lt__(self, other):
     if isinstance(other, FolderWidgetItem):
         return QTreeWidgetItem.__lt__(self, other)
     else:
         return True
示例#3
0
 def __lt__(self, other):
     if isinstance(other, ScriptWidgetItem):
         return QTreeWidgetItem.__lt__(self, other)
     else:
         return False
示例#4
0
 def __lt__(self, other):
     if isinstance(other, FolderWidgetItem):
         return QTreeWidgetItem.__lt__(self, other)
     else:
         return True
示例#5
0
 def __lt__(self, other):
     if isinstance(other, ScriptWidgetItem):
         return QTreeWidgetItem.__lt__(self, other)
     else:
         return False