MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / notifyModStateChanged

Method notifyModStateChanged

src/modlist.cpp:975–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973}
974
975void ModList::notifyModStateChanged(QList<unsigned int> modIndices) const
976{
977 QModelIndexList indices;
978 std::map<QString, IModList::ModStates> mods;
979 for (auto modIndex : modIndices) {
980 indices.append(index(modIndex, 0));
981 ModInfo::Ptr modInfo = ModInfo::getByIndex(modIndex);
982 mods.emplace(modInfo->name(), state(modIndex));
983 }
984
985 emit modStatesChanged(indices);
986 m_ModStateChanged(mods);
987}
988
989boost::signals2::connection
990ModList::onModMoved(const std::function<void(const QString&, int, int)>& func)

Callers 1

modStatusChangedMethod · 0.80

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected