+ QPointer<BufferViewConfig> _config;
+
+ enum ExpandedState {
+ WasExpanded = 0x01,
+ WasActive = 0x02
+ };
+ QHash<NetworkId, short> _expandedState;
+};
+
+
+// ******************************
+// BufferViewDelgate
+// ******************************
+
+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);