MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / getOpenFileNames

Method getOpenFileNames

src/FileDialogHelpers.cpp:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51QStringList FileDialogHelpers::getOpenFileNames(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFileDialog::Options options)
52{
53 const QStringList schemes = QStringList(QStringLiteral("file"));
54 const QList<QUrl> selectedUrls = getOpenFileUrls(parent, caption, dir, filter, selectedFilter, options, schemes);
55 QStringList fileNames;
56
57 fileNames.reserve(selectedUrls.size());
58 for (const QUrl &url : selectedUrls) {
59 if (url.isLocalFile() || url.isEmpty())
60 fileNames << url.toLocalFile();
61 else
62 fileNames << url.toString();
63 }
64 return fileNames;
65}
66
67QUrl FileDialogHelpers::getSaveFileUrl(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFileDialog::Options options, const QStringList &supportedSchemes)
68{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
toStringMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected