MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / rename

Method rename

src/data/PresetManager.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void 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
61bool PresetManager::remove(const QString &name)
62{

Callers 1

Calls 2

rescanMethod · 0.80
getPathMethod · 0.45

Tested by

no test coverage detected