| 90 | } |
| 91 | |
| 92 | bool QNapiOpenDialog::selectDirectory() { |
| 93 | #if defined(Q_OS_WIN) || defined(Q_OS_MAC) |
| 94 | files.clear(); |
| 95 | QString dir = getExistingDirectory(this, windowTitle(), directory().path()); |
| 96 | |
| 97 | if (dir == directory().path()) dir = ""; |
| 98 | |
| 99 | if (!dir.isEmpty()) files << dir; |
| 100 | |
| 101 | return !dir.isEmpty(); |
| 102 | #else |
| 103 | if (!placeWindow()) return false; |
| 104 | // QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks ? |
| 105 | setFileMode(QFileDialog::DirectoryOnly); |
| 106 | return exec(); |
| 107 | #endif |
| 108 | } |
| 109 | |
| 110 | #if defined(Q_OS_WIN) || defined(Q_OS_MAC) |
| 111 | QStringList QNapiOpenDialog::selectedFiles() const { return files; } |
nothing calls this directly
no outgoing calls
no test coverage detected