+
+ enum ExpandedState {
+ WasExpanded = 0x01,
+ WasActive = 0x02
+ };
+ QHash<NetworkId, short> _expandedState;
+
+};
+
+// ******************************
+// BufferViewDelgate
+// ******************************
+#include <QStyledItemDelegate>
+
+class BufferViewDelegate : public QStyledItemDelegate {
+ Q_OBJECT
+
+public:
+ BufferViewDelegate(QObject *parent = 0);
+ bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index);
+
+protected:
+ virtual void customEvent(QEvent *event);
+ virtual void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const;
+
+private slots:
+ void colorsChanged();
+ void loadColors();
+
+private:
+ QColor _FgColorInactiveActivity;
+ QColor _FgColorNoActivity;
+ QColor _FgColorHighlightActivity;
+ QColor _FgColorNewMessageActivity;
+ QColor _FgColorOtherActivity;
+
+ bool _updateColors;