MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / getOpenFileNames

Method getOpenFileNames

pj_widgets/src/FileDialog.cpp:170–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170QStringList FileDialog::getOpenFileNames(
171 QWidget* parent, const QString& caption, const QString& dir, const QString& filter) {
172 FileDialog dlg(parent);
173 if (!caption.isEmpty()) {
174 dlg.setDialogTitle(caption);
175 }
176 dlg.setAcceptMode(QFileDialog::AcceptOpen);
177 dlg.setFileMode(QFileDialog::ExistingFiles);
178 if (!dir.isEmpty()) {
179 dlg.setDirectory(dir);
180 }
181 if (!filter.isEmpty()) {
182 dlg.setNameFilter(filter);
183 }
184 if (dlg.exec() != QDialog::Accepted) {
185 return {};
186 }
187 return dlg.selectedFiles();
188}
189
190QString FileDialog::getSaveFileName(
191 QWidget* parent, const QString& caption, const QString& dir, const QString& filter, const QString& default_suffix) {

Callers

nothing calls this directly

Calls 7

setDialogTitleMethod · 0.80
setAcceptModeMethod · 0.80
setFileModeMethod · 0.80
setDirectoryMethod · 0.80
setNameFilterMethod · 0.80
selectedFilesMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected