#ifndef _CHATSCENE_H_
#define _CHATSCENE_H_
+#include <QAbstractItemModel>
#include <QGraphicsScene>
-#include "messagemodel.h"
-
class AbstractUiMsg;
class Buffer;
class ChatItem;
Q_OBJECT
public:
- ChatScene(MessageModel *model, QObject *parent);
+ ChatScene(QAbstractItemModel *model, QObject *parent);
virtual ~ChatScene();
Buffer *buffer() const;
- inline MessageModel *model() const { return _model; }
+ inline QAbstractItemModel *model() const { return _model; }
public slots:
void setWidth(int);
private:
int _width, _height;
int _timestampWidth, _senderWidth;
- MessageModel *_model;
+ QAbstractItemModel *_model;
QList<ChatLine *> _lines;
};