| 86 | } |
| 87 | |
| 88 | void MMCIcon::remove(IconType rm_type) |
| 89 | { |
| 90 | m_images[rm_type].filename = QString(); |
| 91 | m_images[rm_type].icon = QIcon(); |
| 92 | for (auto iter = rm_type; iter != IconType::ToBeDeleted; iter--) { |
| 93 | if (m_images[iter].present()) { |
| 94 | m_current_type = iter; |
| 95 | return; |
| 96 | } |
| 97 | } |
| 98 | m_current_type = IconType::ToBeDeleted; |
| 99 | } |
| 100 | |
| 101 | void MMCIcon::replace(IconType new_type, QIcon icon, QString path) |
| 102 | { |
no test coverage detected