| 125 | } |
| 126 | |
| 127 | void QuickItemDelegate::setTextColor(const QVariant &textColor, const QPersistentModelIndex &index) |
| 128 | { |
| 129 | if (!index.isValid()) |
| 130 | return; |
| 131 | |
| 132 | m_colors[index] = textColor.value<QColor>(); |
| 133 | |
| 134 | for (int i = 0; i < m_view->model()->columnCount(); i++) |
| 135 | m_view->update(index.sibling(index.row(), i)); |
| 136 | } |