+private:
+ BufferInfo bufferInfoFromModelIndex(const QModelIndex & index);
+ QString nickFromModelIndex(const QModelIndex & index);
+ 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;