-QVariant NickViewFilter::foreground(const QModelIndex &index) const {
- if(!index.data(NetworkModel::ItemActiveRole).toBool())
- return QColor(Qt::gray);
-
- return QColor(Qt::black);
-
- // FIXME:: make colors configurable;
+ QModelIndex source_child = source_parent.child(source_row, 0);
+ return (sourceModel()->data(source_child, NetworkModel::BufferIdRole).value<BufferId>() == _bufferId);