MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / setFromParam

Method setFromParam

src/openms_gui/source/VISUAL/RecentFilesMenu.cpp:56–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

loadPreferencesMethod · 0.80
loadPreferencesMethod · 0.80

Calls 6

StringClass · 0.50
beginMethod · 0.45
endMethod · 0.45
toQStringMethod · 0.45
toStringMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected