| 49 | } |
| 50 | |
| 51 | void PresetManager::rename(const QString &name, const QString &newName) |
| 52 | { |
| 53 | auto path = AppConfig::instance().getPath("presets/") + name + ".conf"; |
| 54 | if (QFile::exists(path)) |
| 55 | { |
| 56 | QFile::rename(path, QDir(path).filePath(newName + ".conf")); |
| 57 | } |
| 58 | this->_presetModel->rescan(); |
| 59 | } |
| 60 | |
| 61 | bool PresetManager::remove(const QString &name) |
| 62 | { |
no test coverage detected