| 158 | |
| 159 | template <class F> |
| 160 | void 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 | |
| 171 | void paintBackground(QTableWidget* table, QPainter* p, |
| 172 | const QStyleOptionViewItem& option, const QModelIndex& index) |
no test coverage detected