UI/FindFileNameDialog.py

changeset 476
121633976eca
parent 428
58405c24aa09
child 500
c3abc7895a01
equal deleted inserted replaced
475:94b3fdd34c60 476:121633976eca
29 onto the respective entry of the list. 29 onto the respective entry of the list.
30 30
31 @signal sourceFile(string) emitted to open a file in the editor 31 @signal sourceFile(string) emitted to open a file in the editor
32 @signal designerFile(string) emitted to open a Qt-Designer file 32 @signal designerFile(string) emitted to open a Qt-Designer file
33 """ 33 """
34 sourceFile = pyqtSignal(str)
35
34 def __init__(self, project, parent = None): 36 def __init__(self, project, parent = None):
35 """ 37 """
36 Constructor 38 Constructor
37 39
38 @param project reference to the project object 40 @param project reference to the project object
80 filePath = itm.text(1) 82 filePath = itm.text(1)
81 83
82 if fileName.endswith('.ui'): 84 if fileName.endswith('.ui'):
83 self.emit(SIGNAL('designerFile'), os.path.join(filePath, fileName)) 85 self.emit(SIGNAL('designerFile'), os.path.join(filePath, fileName))
84 else: 86 else:
85 self.emit(SIGNAL('sourceFile'), os.path.join(filePath, fileName)) 87 self.sourceFile.emit(os.path.join(filePath, fileName))
86 88
87 def __searchFile(self): 89 def __searchFile(self):
88 """ 90 """
89 Private slot to handle the search. 91 Private slot to handle the search.
90 """ 92 """

eric ide

mercurial