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

Method resetColor

src/modlistviewactions.cpp:1180–1187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178}
1179
1180void ModListViewActions::resetColor(const QModelIndexList& indices) const
1181{
1182 for (auto& idx : indices) {
1183 ModInfo::Ptr info = ModInfo::getByIndex(idx.data(ModList::IndexRole).toInt());
1184 info->setColor(QColor());
1185 }
1186 m_core.settings().colors().removePreviousSeparatorColor();
1187}
1188
1189void ModListViewActions::setCategories(
1190 ModInfo::Ptr mod, const std::vector<std::pair<int, bool>>& categories) const

Callers 2

addSeparatorActionsMethod · 0.80
addRegularActionsMethod · 0.80

Calls 4

dataMethod · 0.45
setColorMethod · 0.45
settingsMethod · 0.45

Tested by

no test coverage detected