5106:1ecc6c9abca5 | 5108:f5cb9cb98e6a |
---|---|
4069 act.setData(rp) | 4069 act.setData(rp) |
4070 act.setEnabled(QFileInfo(rp).exists()) | 4070 act.setEnabled(QFileInfo(rp).exists()) |
4071 idx += 1 | 4071 idx += 1 |
4072 | 4072 |
4073 self.recentMenu.addSeparator() | 4073 self.recentMenu.addSeparator() |
4074 self.recentMenu.addAction(self.tr('&Clear'), self.__clearRecent) | 4074 self.recentMenu.addAction(self.tr('&Clear'), self.clearRecent) |
4075 | 4075 |
4076 def __openRecent(self, act): | 4076 def __openRecent(self, act): |
4077 """ | 4077 """ |
4078 Private method to open a project from the list of rencently opened | 4078 Private method to open a project from the list of rencently opened |
4079 projects. | 4079 projects. |
4082 """ | 4082 """ |
4083 file = act.data() | 4083 file = act.data() |
4084 if file: | 4084 if file: |
4085 self.openProject(file) | 4085 self.openProject(file) |
4086 | 4086 |
4087 def __clearRecent(self): | 4087 def clearRecent(self): |
4088 """ | 4088 """ |
4089 Private method to clear the recent projects menu. | 4089 Public method to clear the recent projects menu. |
4090 """ | 4090 """ |
4091 self.recent = [] | 4091 self.recent = [] |
4092 self.__saveRecent() | |
4092 | 4093 |
4093 def __searchNewFiles(self): | 4094 def __searchNewFiles(self): |
4094 """ | 4095 """ |
4095 Private slot used to handle the search new files action. | 4096 Private slot used to handle the search new files action. |
4096 """ | 4097 """ |