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

Method setFilenames

src/openms_gui/source/VISUAL/TOPPASInputFileListVertex.cpp:144–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 }
143
144 void TOPPASInputFileListVertex::setFilenames(const QStringList& files)
145 {
146 output_files_.clear();
147
148 if (files.empty())
149 {
150 return;
151 }
152 output_files_.resize(files.size()); // for now, assume one file per round (we could later extend that)
153 for (int f = 0; f < files.size(); ++f)
154 {
155 output_files_[f][-1].filenames.push_back(QDir::toNativeSeparators(files[f]));
156 }
157
158 setToolTip(files.join("\n"));
159
160 // set current working dir when opening files to the last file
161 cwd_ = File::path(files.back()).toQString();
162 }
163
164 void TOPPASInputFileListVertex::outEdgeHasChanged()
165 {

Callers

nothing calls this directly

Calls 7

backMethod · 0.80
clearMethod · 0.45
emptyMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
toQStringMethod · 0.45

Tested by

no test coverage detected