projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BufferView colors are now determined by it's delegate and no longer by ForegroundRole
[quassel.git]
/
src
/
uisupport
/
bufferview.h
diff --git
a/src/uisupport/bufferview.h
b/src/uisupport/bufferview.h
index
0732f54
..
c9af5b7
100644
(file)
--- a/
src/uisupport/bufferview.h
+++ b/
src/uisupport/bufferview.h
@@
-93,16
+93,24
@@
private:
};
// ******************************
};
// ******************************
-//
Tristate
Delgate
+//
BufferView
Delgate
// ******************************
#include <QStyledItemDelegate>
// ******************************
#include <QStyledItemDelegate>
-class
Tristate
Delegate : public QStyledItemDelegate {
+class
BufferView
Delegate : public QStyledItemDelegate {
Q_OBJECT
public:
Q_OBJECT
public:
- TristateDelegate(QObject *parent = 0) : QStyledItemDelegate(parent) {}
+ BufferViewDelegate(QObject *parent = 0);
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index);
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index);
+
+protected:
+ virtual void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const;
+
+private:
+ QColor _FgColorHighlightActivity;
+ QColor _FgColorNewMessageActivity;
+ QColor _FgColorOtherActivity;
};
};