Default fallback: Documents (or home).
| 63 | |
| 64 | // Default fallback: Documents (or home). |
| 65 | QString DefaultBaseDir() { |
| 66 | QString d = |
| 67 | QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); |
| 68 | if (d.isEmpty()) d = QDir::homePath(); |
| 69 | return d; |
| 70 | } |
| 71 | |
| 72 | // Load last dir for a given key, falling back to a global last dir, |
| 73 | // and finally to a sensible default. |
no outgoing calls
no test coverage detected