MCPcopy Create free account
hub / github.com/cpeditor/cpeditor / getOpenFileName

Method getOpenFileName

src/Settings/DefaultPathManager.cpp:72–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72QString DefaultPathManager::getOpenFileName(const QString &action, QWidget *parent, const QString &caption,
73 const QString &filter, QString *selectedFilter,
74 QFileDialog::Options options)
75{
76 const auto result =
77 QFileDialog::getOpenFileName(parent, caption, defaultPathForAction(action), filter, selectedFilter, options);
78 if (!result.isEmpty())
79 setDefaultPathForAction(action, result);
80 return result;
81}
82
83QStringList DefaultPathManager::getOpenFileNames(const QString &action, QWidget *parent, const QString &caption,
84 const QString &filter, QString *selectedFilter,

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected