X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fnickviewfilter.h;fp=src%2Fclient%2Fnickmodel.h;h=47da2948f100d828c7ed34b1b263df0827372ee3;hb=7f8acf4ede38a0178a97eb701a9382e455ca7c2d;hp=2dc3574212a1b1eea92498172dd89fba7b544945;hpb=99a590ef8b00aadfb3d6f77bc84df015158fc70b;p=quassel.git diff --git a/src/client/nickmodel.h b/src/uisupport/nickviewfilter.h similarity index 86% rename from src/client/nickmodel.h rename to src/uisupport/nickviewfilter.h index 2dc35742..47da2948 100644 --- a/src/client/nickmodel.h +++ b/src/uisupport/nickviewfilter.h @@ -18,8 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef NICKMODEL_H -#define NICKMODEL_H +#ifndef NICKVIEWFILTER_H +#define NICKVIEWFILTER_H #include @@ -27,13 +27,13 @@ class NetworkModel; // This is proxymodel is purely for the sorting right now // the old nickmodel is stored for future reference in /devnotes - -//! This ProxyModel can be used on top of a NickModel in order to provide a sorted nicklist and to hide unused categories. -class NickModel : public QSortFilterProxyModel { +class NickViewFilter : public QSortFilterProxyModel { Q_OBJECT - public: - NickModel(NetworkModel *parent = 0); +public: + NickViewFilter(NetworkModel *parent = 0); + QVariant data(const QModelIndex &index, int role) const; + QVariant foreground(const QModelIndex &index) const; }; #endif