| 45 | } |
| 46 | |
| 47 | bool SkinModel::rename(QString newName) |
| 48 | { |
| 49 | auto info = QFileInfo(m_path); |
| 50 | m_path = FS::PathCombine(info.absolutePath(), newName + ".png"); |
| 51 | return FS::move(info.absoluteFilePath(), m_path); |
| 52 | } |
| 53 | |
| 54 | QJsonObject SkinModel::toJSON() const |
| 55 | { |