X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatview.h;h=be26a1193d75daf2c7953ca4e359b22470fa40d1;hb=65118437813c853cbcc52f0c1a061457e264ed1a;hp=cc627c766bb0fb928aab673e1bcfdc3240b40555;hpb=2684aa5295d12e4f7c66b3011fc8b1819f3d1cbb;p=quassel.git diff --git a/src/qtui/chatview.h b/src/qtui/chatview.h index cc627c76..be26a119 100644 --- a/src/qtui/chatview.h +++ b/src/qtui/chatview.h @@ -18,8 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _CHATVIEW_H_ -#define _CHATVIEW_H_ +#ifndef CHATVIEW_H_ +#define CHATVIEW_H_ #include @@ -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; };