MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / remove

Method remove

launcher/icons/MMCIcon.cpp:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void 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
101void MMCIcon::replace(IconType new_type, QIcon icon, QString path)
102{

Callers 11

unquoteFunction · 0.45
loadFileMethod · 0.45
changeSettingMethod · 0.45
resetSettingMethod · 0.45
reloadLocalFilesMethod · 0.45
stdoutReadyMethod · 0.45
stderrReadyMethod · 0.45
executeNextSubTaskMethod · 0.45
resolveEntryMethod · 0.45
subTaskFinishedMethod · 0.45
directoryChangedMethod · 0.45

Calls 2

QStringClass · 0.85
presentMethod · 0.80

Tested by

no test coverage detected