MCPcopy Create free account
hub / github.com/QNapi/qnapi / selectFile

Method selectFile

gui/src/qnapiopendialog.cpp:64–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64bool QNapiOpenDialog::selectFile() {
65#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
66 files.clear();
67 QString file = getOpenFileName(this, windowTitle(), directory().path(),
68 nameFilters().join("\n"));
69
70 if (!file.isEmpty()) files << file;
71
72 return !file.isEmpty();
73#else
74 if (!placeWindow()) return false;
75 setFileMode(QFileDialog::ExistingFile);
76 return exec();
77#endif
78}
79
80bool QNapiOpenDialog::selectFiles() {
81#if defined(Q_OS_WIN) || defined(Q_OS_MAC)

Callers 3

srcSubSelectClickedMethod · 0.80
movieFPSSelectClickedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected