X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=8551a83a6c8780d80036ad022948013de3cd4dcc;hp=f76cf2ae320132f3487f8fb157c50a2911dc370f;hb=da2b5b2e4e2b0ea1847a0a5f0cb4a3752fc655c9;hpb=aefcf3c3799a9deb286723eccc124760ce4d898d 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() {