X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.h;h=5f8057ab1def3fd39e4e4471b48ffad406542d77;hp=a0bcefc015fa171e72408116cd9c4a03f675f8af;hb=920feae12b62b749299014ce85241165e09b7f4b;hpb=fadb23192f41a04c6a8e16e69576c675a8c40c0a;ds=sidebyside diff --git a/src/qtui/chatscene.h b/src/qtui/chatscene.h index a0bcefc0..5f8057ab 100644 --- a/src/qtui/chatscene.h +++ b/src/qtui/chatscene.h @@ -21,10 +21,9 @@ #ifndef _CHATSCENE_H_ #define _CHATSCENE_H_ +#include #include -#include "messagemodel.h" - class AbstractUiMsg; class Buffer; class ChatItem; @@ -35,11 +34,11 @@ class ChatScene : public QGraphicsScene { 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); @@ -54,7 +53,7 @@ class ChatScene : public QGraphicsScene { private: int _width, _height; int _timestampWidth, _senderWidth; - MessageModel *_model; + QAbstractItemModel *_model; QList _lines; };