projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More windowstate-related changes
[quassel.git]
/
src
/
uisupport
/
nickviewfilter.h
diff --git
a/src/uisupport/nickviewfilter.h
b/src/uisupport/nickviewfilter.h
index
38b7ca3
..
7bf9b6b
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 *
@@
-22,25
+22,42
@@
#define NICKVIEWFILTER_H
#include <QSortFilterProxyModel>
#define NICKVIEWFILTER_H
#include <QSortFilterProxyModel>
+
+#include <QPixmap>
+
#include "types.h"
class NetworkModel;
// This is proxymodel is purely for the sorting right now
#include "types.h"
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:
NickViewFilter(const BufferId &bufferId, NetworkModel *parent = 0);
class NickViewFilter : public QSortFilterProxyModel {
Q_OBJECT
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;
+private slots:
+ void showUserStateIconsChanged();
+
private:
BufferId _bufferId;
private:
BufferId _bufferId;
+
+ QHash<int, QPixmap> _categoryIconHash;
+ QPixmap _userOnlineIcon;
+ QPixmap _userAwayIcon;
+ QPixmap _categoryOpIcon;
+ QPixmap _categoryVoiceIcon;
+ int _opIconLimit;
+ int _voiceIconLimit;
+ bool _showUserStateIcons;
+
+ void loadColors();
};
#endif
};
#endif