RefactoringRope/MatchesDialog.py

branch
server_client_variant
changeset 165
ea41742015af
parent 147
3f8a995f6e49
child 203
c38750e1bafd
--- a/RefactoringRope/MatchesDialog.py	Thu Sep 14 19:39:11 2017 +0200
+++ b/RefactoringRope/MatchesDialog.py	Fri Sep 15 19:50:07 2017 +0200
@@ -76,14 +76,16 @@
         fn = item.data(0, MatchesDialog.FilePathRole)
         e5App().getObject("ViewManager").openSourceFile(fn, lineno)
     
-    def addEntry(self, resource, lineno, unsure=False):
+    def addEntry(self, filename, lineno, unsure=False):
         """
         Public slot to add an entry to the list.
         
-        @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)
+        @param filename full path of the matched file
+        @type str
+        @param lineno line number of the match
+        @type int
+        @param unsure flag indicating an unsure match
+        @type bool
         """
         if unsure:
             conf = 50
@@ -91,10 +93,10 @@
             conf = 100
         itm = QTreeWidgetItem(
             self.matchesList,
-            [self.__e5project.getRelativePath(resource.real_path),
+            [self.__e5project.getRelativePath(filename),
              " {0:5d}".format(lineno),
              " {0:5d}%".format(conf)])
-        itm.setData(0, MatchesDialog.FilePathRole, resource.real_path)
+        itm.setData(0, MatchesDialog.FilePathRole, filename)
         itm.setTextAlignment(1, Qt.AlignRight)
         itm.setTextAlignment(2, Qt.AlignRight)
         self.__resort()

eric ide

mercurial