| 54 | } |
| 55 | |
| 56 | unsigned RecentFilesMenu::setFromParam(const Param& filenames) |
| 57 | { |
| 58 | QStringList rfiles; |
| 59 | unsigned count{ 0 }; |
| 60 | for (Param::ParamIterator it = filenames.begin(); it != filenames.end(); ++it) |
| 61 | { |
| 62 | QString filename = String(it->value.toString()).toQString(); |
| 63 | if (File::exists(filename)) |
| 64 | { |
| 65 | rfiles.append(filename); |
| 66 | ++count; |
| 67 | } |
| 68 | } |
| 69 | set(rfiles); |
| 70 | return count; |
| 71 | } |
| 72 | |
| 73 | Param RecentFilesMenu::getAsParam() const |
| 74 | { |