- if(!index.data(NetworkModel::ItemActiveRole).toBool())
- return awayStatusFG.value<QColor>();
-
- return onlineStatusFG.value<QColor>();
-
- // FIXME:: make colors configurable;
- // FIXME: use the style interface instead of qsettings
+QVariant NickViewFilter::data(const QModelIndex &index, int role) const {
+ switch(role) {
+ case Qt::FontRole:
+ case Qt::ForegroundRole:
+ case Qt::BackgroundRole:
+ case Qt::DecorationRole:
+ return GraphicalUi::uiStyle()->nickViewItemData(mapToSource(index), role);
+ default:
+ return QSortFilterProxyModel::data(index, role);
+ }