- loadColors();
-}
-
-void NickViewFilter::loadColors() {
- UiSettings s("QtUi/Colors");
- _FgOnlineStatus = s.value("onlineStatusFG", QVariant(QColor(Qt::black))).value<QColor>();
- _FgAwayStatus = s.value("awayStatusFG", QVariant(QColor(Qt::gray))).value<QColor>();
- // FIXME: use the style interface instead of qsettings
-}
-
-QVariant NickViewFilter::data(const QModelIndex &index, int role) const {
- if(role == Qt::ForegroundRole)
- return foreground(index);
- else
- return QSortFilterProxyModel::data(index, role);