366 for rf in self.recentFiles: |
366 for rf in self.recentFiles: |
367 if idx < 10: |
367 if idx < 10: |
368 formatStr = '&{0:d}. {1}' |
368 formatStr = '&{0:d}. {1}' |
369 else: |
369 else: |
370 formatStr = '{0:d}. {1}' |
370 formatStr = '{0:d}. {1}' |
371 act = self.recentFilesMenu.addAction(\ |
371 act = self.recentFilesMenu.addAction( |
372 formatStr.format(idx, |
372 formatStr.format(idx, |
373 Utilities.compactPath(rf, self.maxMenuFilePathLen))) |
373 Utilities.compactPath(rf, self.maxMenuFilePathLen))) |
374 act.setData(rf) |
374 act.setData(rf) |
375 idx += 1 |
375 idx += 1 |
376 |
376 |