NickView gets it's own Delegate too and uses only QPalette for coloring
[quassel.git] / src / uisupport / nickview.h
index 45d03f1..a40b6d7 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel Project                          *
+ *   Copyright (C) 2005-09 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -48,4 +48,19 @@ private:
   void executeCommand(const BufferInfo & bufferInfo, const QString & command);
 };
 
+// ******************************
+//  NickViewDelgate
+// ******************************
+#include <QStyledItemDelegate>
+
+class NickViewDelegate : public QStyledItemDelegate {
+  Q_OBJECT
+
+public:
+  NickViewDelegate(QObject *parent = 0);
+
+protected:
+  virtual void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const;
+};
+
 #endif