projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UiStyle::StyledMessage derived now from Message
[quassel.git]
/
src
/
uisupport
/
nickviewfilter.h
diff --git
a/src/uisupport/nickviewfilter.h
b/src/uisupport/nickviewfilter.h
index
47da294
..
5868c73
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,19
+21,30
@@
#ifndef NICKVIEWFILTER_H
#define NICKVIEWFILTER_H
#ifndef NICKVIEWFILTER_H
#define NICKVIEWFILTER_H
+#include <QColor>
#include <QSortFilterProxyModel>
#include <QSortFilterProxyModel>
+#include "types.h"
class NetworkModel;
// This is proxymodel is purely for the sorting right now
class NetworkModel;
// This is proxymodel is purely for the sorting right now
-// the old nickmodel is stored for future reference in /devnotes
class NickViewFilter : public QSortFilterProxyModel {
Q_OBJECT
public:
class NickViewFilter : public QSortFilterProxyModel {
Q_OBJECT
public:
- NickViewFilter(NetworkModel *parent = 0);
+ NickViewFilter(
const BufferId &bufferId,
NetworkModel *parent = 0);
QVariant data(const QModelIndex &index, int role) const;
QVariant foreground(const QModelIndex &index) const;
QVariant data(const QModelIndex &index, int role) const;
QVariant foreground(const QModelIndex &index) const;
+
+protected:
+ virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
+
+private:
+ BufferId _bufferId;
+ QColor _FgOnlineStatus;
+ QColor _FgAwayStatus;
+
+ void loadColors();
};
#endif
};
#endif