X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatview.h;h=be26a1193d75daf2c7953ca4e359b22470fa40d1;hb=8efcbd43a43db3d5da70bee13b72b4e11980a75b;hp=7ae7c8dc510541cc339d070fbbd5969b97bfeafc;hpb=cc7f376eb105f7bf931fb7f96c9601a7b3f69511;p=quassel.git diff --git a/src/qtui/chatview.h b/src/qtui/chatview.h index 7ae7c8dc..be26a119 100644 --- a/src/qtui/chatview.h +++ b/src/qtui/chatview.h @@ -29,11 +29,13 @@ class AbstractUiMsg; class Buffer; class ChatLine; class ChatScene; +class MessageFilter; class ChatView : public QGraphicsView, public AbstractChatView { Q_OBJECT public: + ChatView(MessageFilter *, QWidget *parent = 0); ChatView(Buffer *, QWidget *parent = 0); ~ChatView(); @@ -53,7 +55,15 @@ class ChatView : public QGraphicsView, public AbstractChatView { void setContents(const QList &); + protected: + virtual void resizeEvent(QResizeEvent *event); + + protected slots: + virtual void sceneHeightChanged(qreal height); + private: + void init(MessageFilter *filter); + ChatScene *_scene; };