X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=8551a83a6c8780d80036ad022948013de3cd4dcc;hp=f76cf2ae320132f3487f8fb157c50a2911dc370f;hb=9e0b5872dcf290e375c46c016f951c6ea780fcc0;hpb=c913d654e92f5b3a6daea3265a3ed84e73c5cf6f diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index f76cf2ae..8551a83a 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -28,10 +28,11 @@ #include "quasselui.h" ChatView::ChatView(Buffer *buf, QWidget *parent) : QGraphicsView(parent), AbstractChatView() { + setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); _scene = new ChatScene(Client::messageModel(), this); + _scene->setWidth(width()); setScene(_scene); - //QGraphicsTextItem *item = scene()->addText(buf->bufferInfo().bufferName()); } @@ -45,6 +46,10 @@ ChatScene *ChatView::scene() const { return _scene; } +void ChatView::resizeEvent(QResizeEvent *event) { + scene()->setWidth(event->size().width()); + +} void ChatView::clear() {