| 35 | } |
| 36 | |
| 37 | const QString SamInterface::modelFolder(bool) |
| 38 | { |
| 39 | QDir dir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)); |
| 40 | const QString modelName = QStringLiteral("sam2models"); |
| 41 | if (!dir.exists(modelName)) { |
| 42 | dir.mkpath(modelName); |
| 43 | } |
| 44 | return QStandardPaths::locate(QStandardPaths::AppDataLocation, modelName, QStandardPaths::LocateDirectory); |
| 45 | } |
| 46 | |
| 47 | const QStringList SamInterface::getInstalledModels() |
| 48 | { |
no test coverage detected