--- a/RefactoringRope/MatchesDialog.py Sun Jan 30 19:00:34 2011 +0100 +++ b/RefactoringRope/MatchesDialog.py Sun Jan 30 19:19:40 2011 +0100 @@ -15,16 +15,17 @@ from Ui_MatchesDialog import Ui_MatchesDialog + class MatchesDialog(QDialog, Ui_MatchesDialog): """ Class implementing a dialog to show matching references/definitions. """ - def __init__(self, ui, showConfidence, parent = None, name = None): + def __init__(self, ui, showConfidence, parent=None, name=None): """ Constructor @param ui reference to the UI object - @param showConfidence flag indicating the display of the + @param showConfidence flag indicating the display of the confidence column (boolean) @param parent parent of this dialog (QWidget) @param name name of this dialog (string) @@ -47,7 +48,7 @@ """ 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): @@ -70,7 +71,7 @@ """ Public slot to add an entry to the list. - @param resource reference to the resource object + @param resource reference to the resource object (rope.base.resources.Resource) @param lineno linenumber of the match (integer) @param unsure flag indicating an unsure match (boolean) @@ -80,8 +81,8 @@ else: conf = 100 itm = QTreeWidgetItem(self.matchesList, - [resource.real_path, - " {0:5d}".format(lineno), + [resource.real_path, + " {0:5d}".format(lineno), " {0:5d}%".format(conf)]) itm.setTextAlignment(1, Qt.AlignRight) itm.setTextAlignment(2, Qt.AlignRight)