| 973 | } |
| 974 | |
| 975 | void 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 | |
| 989 | boost::signals2::connection |
| 990 | ModList::onModMoved(const std::function<void(const QString&, int, int)>& func) |