MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / remove

Method remove

launcher/icons/MMCIcon.cpp:89–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

changeSettingMethod · 0.45
resetSettingMethod · 0.45
reloadLocalFilesMethod · 0.45
stdoutReadyMethod · 0.45
stderrReadyMethod · 0.45
resolveEntryMethod · 0.45
subTaskSucceededMethod · 0.45
subTaskFailedMethod · 0.45
directoryChangedMethod · 0.45

Calls 2

QStringClass · 0.85
presentMethod · 0.80

Tested by

no test coverage detected