projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add MenuBar toggle to ChatScene context menu
[quassel.git]
/
src
/
uisupport
/
nickviewfilter.h
diff --git
a/src/uisupport/nickviewfilter.h
b/src/uisupport/nickviewfilter.h
index
534600f
..
3820813
100644
(file)
--- a/
src/uisupport/nickviewfilter.h
+++ b/
src/uisupport/nickviewfilter.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
8
by the Quassel Project *
+ * Copyright (C) 2005-0
9
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,8
+21,8
@@
#ifndef NICKVIEWFILTER_H
#define NICKVIEWFILTER_H
#ifndef NICKVIEWFILTER_H
#define NICKVIEWFILTER_H
-#include <QColor>
#include <QSortFilterProxyModel>
#include <QSortFilterProxyModel>
+
#include "types.h"
class NetworkModel;
#include "types.h"
class NetworkModel;
@@
-33,18
+33,16
@@
class NickViewFilter : public QSortFilterProxyModel {
public:
NickViewFilter(const BufferId &bufferId, NetworkModel *parent = 0);
public:
NickViewFilter(const BufferId &bufferId, NetworkModel *parent = 0);
- QVariant data(const QModelIndex &index, int role) const;
- QVariant foreground(const QModelIndex &index) const;
+
+ virtual QVariant data(const QModelIndex &index, int role) const;
+ QVariant icon(const QModelIndex &index) const;
protected:
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
protected:
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
+ QVariant styleData(const QModelIndex &index, int role) const;
private:
BufferId _bufferId;
private:
BufferId _bufferId;
- QColor _FgOnlineStatus;
- QColor _FgAwayStatus;
-
- void loadColors();
};
#endif
};
#endif