| 79 | } |
| 80 | |
| 81 | QString defaultPageExportDirectory() |
| 82 | { |
| 83 | const auto locations = { QStandardPaths::PicturesLocation, |
| 84 | QStandardPaths::DocumentsLocation, |
| 85 | QStandardPaths::HomeLocation }; |
| 86 | |
| 87 | for (const auto location : locations) { |
| 88 | const QString path = QStandardPaths::writableLocation(location); |
| 89 | if (!path.isEmpty()) |
| 90 | return path; |
| 91 | } |
| 92 | |
| 93 | return QDir::currentPath(); |
| 94 | } |
| 95 | |
| 96 | QString pageExportDirectory(QSettings *settings, QString key) |
| 97 | { |
no test coverage detected