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