-//!\brief Displays the contents of a Buffer.
-/** A BufferWidget usually includes a topic line, a nicklist, the chat itself, and an input line.
- * For server buffers or queries, there is of course no nicklist.
- * The contents of the chat is rendered by a ChatWidget.
- */
-class BufferWidget : public QWidget {
+#include "buffermodel.h"
+
+//! Displays the contents of a Buffer.
+/**
+*/
+class BufferWidget : public AbstractItemView {