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

Function forEachColorItem

src/colortable.cpp:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159template <class F>
160void forEachColorItem(QTableWidget* table, F&& f)
161{
162 const auto rowCount = table->rowCount();
163
164 for (int i = 0; i < rowCount; ++i) {
165 if (auto* ci = colorItemForRow(table, i)) {
166 f(ci);
167 }
168 }
169}
170
171void paintBackground(QTableWidget* table, QPainter* p,
172 const QStyleOptionViewItem& option, const QModelIndex& index)

Callers 2

resetColorsMethod · 0.85
commitColorsMethod · 0.85

Calls 2

colorItemForRowFunction · 0.85
rowCountMethod · 0.45

Tested by

no test coverage detected