--- a/RefactoringRope/MatchesDialog.py Sun Oct 13 18:35:25 2013 +0200 +++ b/RefactoringRope/MatchesDialog.py Fri Oct 25 19:33:36 2013 +0200 @@ -51,7 +51,8 @@ """ Private method to resort the tree. """ - self.matchesList.sortItems(self.matchesList.sortColumn(), + self.matchesList.sortItems( + self.matchesList.sortColumn(), self.matchesList.header().sortIndicatorOrder()) def __resizeColumns(self): @@ -65,6 +66,9 @@ def on_matchesList_itemActivated(self, item, column): """ Private slot to handle the itemActivated signal of the list. + + @param item reference to the activated item (QTreeWidgetItem) + @param column column the item was activated in (integer) """ lineno = int(item.text(1)) fn = item.data(0, MatchesDialog.FilePathRole) @@ -83,7 +87,8 @@ conf = 50 else: conf = 100 - itm = QTreeWidgetItem(self.matchesList, + itm = QTreeWidgetItem( + self.matchesList, [self.__e5project.getRelativePath(resource.real_path), " {0:5d}".format(lineno), " {0:5d}%".format(conf)])