X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.h;h=7d84e6ad342da767558d24a3530a1ac2d4e9019d;hp=88a7e23ab89737a645264685f72dcfe23b18486e;hb=ddba2696fe051b472d6670e225e67c2f6f1972ce;hpb=39e2a78383295f86c5aa2dadbeac6f02b53eb7a4 diff --git a/src/qtui/chatview.h b/src/qtui/chatview.h index 88a7e23a..7d84e6ad 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(); @@ -43,16 +45,6 @@ class ChatView : public QGraphicsView, public AbstractChatView { void clear(); - void prependMsg(AbstractUiMsg *); - void appendMsg(AbstractUiMsg *); - - void prependChatLine(ChatLine *); - void appendChatLine(ChatLine *); - void prependChatLines(QList); - void appendChatLines(QList); - - void setContents(const QList &); - protected: virtual void resizeEvent(QResizeEvent *event); @@ -60,6 +52,8 @@ class ChatView : public QGraphicsView, public AbstractChatView { virtual void sceneHeightChanged(qreal height); private: + void init(MessageFilter *filter); + ChatScene *_scene; };