void MCModInfoFrame::updateWithMod(Mod &m) { if(m.type() == m.MOD_FOLDER) { clear(); return; } QString text = ""; QString name = ""; if(m.name().isEmpty()) name = m.mmc_id(); else name = m.name(); if(m.homeurl().isEmpty()) text = name; else text = "<a href=\"" + m.homeurl() + "\">" + name + "</a>"; if(!m.authors().isEmpty()) text += " by " + m.authors(); setModText(text); if(m.description().isEmpty()) { setModDescription(tr("No description provided in mcmod.info")); } else { setModDescription(m.description()); } }
bool Mod::strongCompare(const Mod &other) const { return mmc_id() == other.mmc_id() && version() == other.version() && type() == other.type(); }
bool Mod::operator==(const Mod &other) const { return mmc_id() == other.mmc_id(); }